[code-reflection] RFR: 8337158: Modeling and lowering of switch statement [v4]

Paul Sandoz psandoz at openjdk.org
Fri Aug 16 16:13:01 UTC 2024


On Fri, 16 Aug 2024 10:37:45 GMT, Mourad Abbay <mabbay at openjdk.org> wrote:

>> src/jdk.compiler/share/classes/com/sun/tools/javac/comp/ReflectMethods.java line 1764:
>> 
>>> 1762:                 return l instanceof JCTree.JCConstantCaseLabel ccl && ccl.expr instanceof JCLiteral literal && literal.value == null;
>>> 1763:             }));
>>> 1764:             if (enhancedSw && !tree.hasUnconditionalPattern) {
>> 
>> Add a test that generates this part of the model?
>
> Are you asking if the tests cover this ?

Yes.

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

PR Review Comment: https://git.openjdk.org/babylon/pull/211#discussion_r1720043929


More information about the babylon-dev mailing list