RFR: 8258897: wrong translation of capturing local classes inside nested lambdas [v3]

Jan Lahoda jlahoda at openjdk.java.net
Wed Jan 27 07:47:41 UTC 2021


On Wed, 27 Jan 2021 06:36:21 GMT, Guoxiong Li <github.com+13688759+lgxbslgx at openjdk.org> wrote:

>> test/langtools/tools/javac/lambda/8258897/CaptureVariables.java line 3:
>> 
>>> 1: import java.util.function.Supplier;
>>> 2: 
>>> 3: /**
>> 
>> It would be nice to tweak the test to so that:
>> -the comment with `@test` is first, and imports follow
>> -`@test` is augmented with `/nodynamiccopyright/`
>> -`@bug` is added
>> -`@summary` is added
>> 
>> (applies to both tests)
>
> @lahodaj I think the tests in this case can use the copyright header instead of `/nodynamiccopyright/`. What's your opinion?

@lgxbslgx - you are right, I am sorry. `/nodymiccopyright/` is used when line numbers are significant, and I somehow thought they are here, but you are right they are not. So there should be a normal header here.

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

PR: https://git.openjdk.java.net/jdk/pull/1479


More information about the compiler-dev mailing list