RFR: 8328747: WrongMethodTypeException with pattern matching on switch on sealed classes [v2]

Aggelos Biboudis abimpoudis at openjdk.org
Thu Apr 4 09:26:24 UTC 2024


On Wed, 3 Apr 2024 20:33:16 GMT, Vicente Romero <vromero at openjdk.org> wrote:

>> Aggelos Biboudis has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Append empty line
>
> src/jdk.compiler/share/classes/com/sun/tools/javac/comp/TransPatterns.java line 503:
> 
>> 501:                     bootstrapName, staticArgTypes, List.nil());
>> 502: 
>> 503:             Type resolvedSelectorType = syms.objectType;
> 
> isn't this change assigning Object to `resolvedSelectorType` for more cases than before JEP455? not sure if there is a semantic change here

Correct. I also moved it at the top of this method.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/18606#discussion_r1551311934


More information about the compiler-dev mailing list