Class modifiers in Java 16

forax at univ-mlv.fr forax at univ-mlv.fr
Thu May 27 19:35:10 UTC 2021


>> De: "Brian Goetz" <brian.goetz at oracle.com>
>> À: "Remi Forax" <forax at univ-mlv.fr>
>> Cc: "Tagir Valeev" <amaembo at gmail.com>, "compiler-dev"
>> <compiler-dev at openjdk.java.net>, "amber-dev" <amber-dev at openjdk.java.net>
>> Envoyé: Jeudi 27 Mai 2021 15:37:11
>> Objet: Re: Class modifiers in Java 16

>> I think there’s a bit of preparing for the future here. There’s the concepts
>> (how static interacts with nesting) which is separate from which exact
>> combinations of those concepts that the language currently supports. We’re
>> moving towards trying to get rid of the arbitrary nest-x-in-y rules, step 1 was
>> defining the concepts separate from the arbitrary restrictions, but we haven’t
>> lifted the restrictions yet.
> BTW, why annotations are not allowed in any nested context local or not ?

shelf correcting myself, there are allowed in nested class not nested methods. 

> It's a PITA when writing unit tests, the annotations have always a scope too
> broad.

Rémi 


More information about the amber-dev mailing list