RFR: JDK-8306112 Implementation of JEP 445: Unnamed Classes and Instance Main Methods (Preview) [v32]
Joe Darcy
darcy at openjdk.org
Sat Jun 3 01:56:18 UTC 2023
On Fri, 2 Jun 2023 22:10:44 GMT, Jim Laskey <jlaskey at openjdk.org> wrote:
>> Add flexible main methods and anonymous main classes to the Java language.
>
> Jim Laskey has updated the pull request incrementally with one additional commit since the last revision:
>
> Update the specification for TypeElement#getQualifiedName and TypeElement#getSimpleName
src/java.base/share/classes/java/lang/Class.java line 1884:
> 1882: reflective=true)
> 1883: public boolean isUnnamedClass() {
> 1884: return PreviewFeatures.isEnabled() && isSynthetic() && isTopLevelClass();
Please add a check for final-ness as @mlchung suggested in the other PR of the reflection changes stand-alone.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/13689#discussion_r1215095660
More information about the build-dev
mailing list