On Fri, 5 May 2023 17:31:27 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:
> 
>   Typo

src/jdk.compiler/share/classes/com/sun/tools/javac/launcher/Main.java line 466:

> 464:         } catch (ClassNotFoundException e) {
> 465:             throw new Fault(Errors.CantFindClass(mainClassName));
> 466:         } catch (NoSuchMethodException e) {

`getDeclaredConstructor` can also throw a NSME but this error message would 
still say that the main method couldn't be found unless at this point we are 
sure that the class must have a no-args constructor

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

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

Reply via email to