[code-reflection] RFR: 8337158: Modeling and lowering of switch statement [v4]
    Mourad Abbay 
    mabbay at openjdk.org
       
    Fri Aug 16 10:40:21 UTC 2024
    
    
  
On Fri, 9 Aug 2024 22:51:21 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:
>> Mourad Abbay has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Test switch statement model
>
> 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 ?
-------------
PR Review Comment: https://git.openjdk.org/babylon/pull/211#discussion_r1719673800
    
    
More information about the babylon-dev
mailing list