RFR: 8350013: Add a test for JDK-8150442 [v2]

Alexey Semenyuk asemenyuk at openjdk.org
Fri Feb 28 03:50:52 UTC 2025


On Fri, 28 Feb 2025 01:34:22 GMT, Alexander Matveev <almatvee at openjdk.org> wrote:

> With `->` it should not fall into next case. Maybe I am missing something.

Right, but there are two `siwtch` blocks in the function. Without `return` the control flow will get to the second one. `return`-s prevents this.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/23825#discussion_r1974717411


More information about the core-libs-dev mailing list