On Thu, 18 May 2023 19:06:28 GMT, Jim Laskey <jlas...@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