RFR: JDK-8315458 Implementation of Implicitly Declared Classes and Instance Main Method (Second Preview) [v2]
Jim Laskey
jlaskey at openjdk.org
Fri Nov 3 12:31:32 UTC 2023
On Thu, 2 Nov 2023 18:10:27 GMT, Rémi Forax <forax at openjdk.org> wrote:
>> Hmmm. I'll check with Gavin, but I thought in discussions Alex said that it should be mandated. At any rate, seems the ACC_MANDATED should be removed for stated reasons.
>
> It should be MANDATED in theory given it's not an artifact of the compilation like SYNTHETIC is. Sadly, as Maurizio said ACC_MANDATED has the same value as ACC_MODULE.
> I think there is a value to still make it as SYNTHETIC, apart if we add a new specific attribute for implicit classes.
We're opting to not to flag the class as special. Implicit classes are just regular classes derived from syntactic sugar.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16461#discussion_r1381606620
More information about the compiler-dev
mailing list