RFR: JDK-8315458 Implement JEP 463: Implicitly Declared Classes and Instance Main Method (Second Preview) [v17]
Pavel Rappo
prappo at openjdk.org
Wed Nov 15 15:43:55 UTC 2023
On Sat, 11 Nov 2023 15:57:40 GMT, Jim Laskey <jlaskey at openjdk.org> wrote:
>> Jim Laskey has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Clean up previous commit
>
> Things should be fine now.
@JimLaskey, I read JEP 463 but couldn't find any statements on access level of an implicit class. `javap` shows that such a class has package access (as I assume it should).
Here's the most relevant find in JEP, but it's not about the class. It's about class' members:
> An implicit class is almost exactly like an explicitly declared class. Its members can have the same modifiers (e.g., private and static) and the modifiers have the same defaults (e.g., package access and instance membership). One key difference is that while an implicit class has a default zero-parameter constructor, it can have no other constructor.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/16461#issuecomment-1812771590
More information about the core-libs-dev
mailing list