[code-reflection] RFR: Change the model of the default label of switch [v2]

Mourad Abbay mabbay at openjdk.org
Fri Sep 6 14:54:23 UTC 2024


On Fri, 6 Sep 2024 08:45:46 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

>> Mourad Abbay has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Fix NullTest
>
> src/jdk.compiler/share/classes/com/sun/tools/javac/comp/ReflectMethods.java line 1671:
> 
>> 1669: 
>> 1670:             Body.Builder body = null;
>> 1671:             Type yieldType = tree.type != null ? adaptBottom(tree.type) : null;
> 
> Why the change here?

`typeElementToType(javaType.STRING)` returns `none`

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

PR Review Comment: https://git.openjdk.org/babylon/pull/223#discussion_r1747251090


More information about the babylon-dev mailing list