RFR: JDK-8306112 Implementation of JEP 445: Unnamed Classes and Instance Main Methods (Preview) [v32]

Joe Darcy darcy at openjdk.org
Sat Jun 3 23:18:17 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/jdk.compiler/share/classes/com/sun/tools/javac/code/Symbol.java line 1379:

> 1377:          @Override @DefinedBy(Api.LANGUAGE_MODEL)
> 1378:          public Name getSimpleName() {
> 1379:              // return isUnnamed() ? name.subName(0, 0) /* empty name */ : name;

This line could be deleted.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/13689#discussion_r1215925243



More information about the build-dev mailing list