RFR: JDK-8306112 Implementation of JEP 445: Unnamed Classes and Instance Main Methods (Preview) [v16]
Alan Bateman
alanb at openjdk.org
Tue May 23 18:05:21 UTC 2023
On Thu, 18 May 2023 19:06:28 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:
>
> Give subclass priority
src/java.base/share/classes/jdk/internal/misc/MainMethodFinder.java line 129:
> 127: * @throws NoSuchMethodException when not preview and no method found
> 128: */
> 129: public static Method findMainMethod(Class<?> mainClass) throws NoSuchMethodException {
The latest iteration of changes removes the warning but the latest iteration of the JEP proposes a warning when an instance main or static no-args main is preferred over an inherited static main. Is it that the JEP is just running ahead a bit and the changes in the PR will catch up soon?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/13689#discussion_r1202796707
More information about the build-dev
mailing list