RFR: 8302344: Compiler Implementation for Unnamed patterns and variables (Preview) [v13]

Joe Darcy darcy at openjdk.org
Tue May 9 02:35:31 UTC 2023


On Tue, 9 May 2023 02:29:07 GMT, Joe Darcy <darcy at openjdk.org> wrote:

>> Note that `Element` does not declare `isUnnamed`.
>> 
>> `isUnnamed` overrides method in `VariableElement` (javax.lang.model.element) via subclass `VarSymbol` in `Symbol`.
>
>> Note that `Element` does not declare `isUnnamed`.
>> 
>> `isUnnamed` overrides method in `VariableElement` (javax.lang.model.element) via subclass `VarSymbol` in `Symbol`.
> 
> I think it is preferable for VarSymbol.isUnnamed to be deleted; it is functionally the same as the default method defined on VariableElement.

> 

PS Just saw the additional discussion on this point below.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/13528#discussion_r1188055782


More information about the compiler-dev mailing list