RFR: JDK-8315458 Implement JEP 463: Implicitly Declared Classes and Instance Main Method (Second Preview) [v26]
Christian Stein
cstein at openjdk.org
Mon Nov 20 13:58:49 UTC 2023
On Mon, 20 Nov 2023 13:50:45 GMT, Alan Bateman <alanb at openjdk.org> wrote:
> [...] it does make the java launcher code much simpler.
Yes. That's a very nice effect of surfacing the launch protocol directyl in `java.lang.Class`
> So I'm not sure about the naming, it feels more like a `findMainMethod` to emphasize the search or just `mainMethod`.
+1 for `findMainMethod`, and also an explicit `Optional<Method>` as the return type.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16461#discussion_r1399240835
More information about the compiler-dev
mailing list