RFR: 8261205: AssertionError: Cannot add metadata to an intersection type [v2]
Vicente Romero
vromero at openjdk.java.net
Wed May 19 19:05:28 UTC 2021
On Wed, 19 May 2021 08:27:27 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> Looks better - one question: what about `var` with annotations and lambda parameters? E.g. you can probably construct a similar example involving a lambda parameter - is this fix enough, or would the code path be slightly different?
good catch! I have modified the patch to include the case for lambda parameters declared with `var`, I also removed the initial test and added a new one that not only makes sure that the code compiles, it also checks that no type annotations are represented in the class file
-------------
PR: https://git.openjdk.java.net/jdk/pull/4095
More information about the compiler-dev
mailing list