RFR: 8294943: Implement record patterns in enhanced for [v15]
Aggelos Biboudis
abimpoudis at openjdk.org
Thu Nov 24 19:16:14 UTC 2022
On Thu, 24 Nov 2022 16:39:35 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
>> Aggelos Biboudis has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Add @enablePreview
>
> src/jdk.compiler/share/classes/com/sun/tools/javac/parser/JavacParser.java line 2987:
>
>> 2985: boolean inType = false;
>> 2986: boolean inSelectionAndParenthesis = false;
>> 2987: ForInitResult defaultResult = ForInitResult.LocalVarDecl;
>
> I don't think this is needed - this is just the return of the "default" path
Thx for the fix
-------------
PR: https://git.openjdk.org/jdk/pull/10798
More information about the compiler-dev
mailing list