[code-reflection] RFR: Test Switch Expression lowering when case is constant [v3]

Maurizio Cimadamore mcimadamore at openjdk.org
Thu Jul 25 09:36:50 UTC 2024


On Wed, 24 Jul 2024 20:34:03 GMT, Mourad Abbay <mabbay at openjdk.org> wrote:

>> Test Switch Expression lowering when case is constant.
>
> Mourad Abbay has updated the pull request incrementally with three additional commits since the last revision:
> 
>  - Write code models without location info
>  - Fix a typo
>  - Add compiler tests of Switch Expression.

test/langtools/tools/javac/reflect/SwitchExpressionTest2.java line 76:

> 74:                     ()java.lang.String -> {
> 75:                         %7 : java.lang.String = constant @"BAR";
> 76:                         java.yield %7;

unrelated: but I found the distinction between `yield` and `java.yield` a bit confusing...

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

PR Review Comment: https://git.openjdk.org/babylon/pull/169#discussion_r1691146265


More information about the babylon-dev mailing list