[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:36:14 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.

src/java.base/share/classes/java/lang/reflect/code/op/ExtendedOp.java line 31:

> 29: import java.lang.reflect.code.*;
> 30: import java.lang.reflect.code.type.*;
> 31: import java.lang.reflect.code.TypeElement;

Suggestion:

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

PR Review Comment: https://git.openjdk.org/babylon/pull/112#discussion_r1627059191


More information about the babylon-dev mailing list