[code-reflection] RFR: Null check only when selector expression of switch expression is of reference type [v2]

Adam Sotona asotona at openjdk.org
Wed Jun 5 06:48:05 UTC 2024


On Wed, 5 Jun 2024 00:59:43 GMT, Mourad Abbay <mabbay at openjdk.org> wrote:

>> Generate lowered form of switch expression that check if the selector expression is null only when the selector expression has type reference.
>
> Mourad Abbay has updated the pull request incrementally with two additional commits since the last revision:
> 
>  - Test lowering switch that has a selector expression of type primitive.
>  - Change the way we check if selector expression is of type primitive.

`TestSwitchExpressionOp` fails to compile for me with:

test/jdk/java/lang/reflect/code/TestSwitchExpressionOp.java:111: error: cannot find symbol
        CoreOp.FuncOp lf = f.transform(OpTransformer.LOWERING_TRANSFORMER);
                                       ^
  symbol:   variable OpTransformer
  location: class TestSwitchExpressionOp
1 error

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

PR Comment: https://git.openjdk.org/babylon/pull/112#issuecomment-2149005609


More information about the babylon-dev mailing list