Review Request JDK-8221368: Error message when module main class cannot be loaded is missing exception details

Mandy Chung mandy.chung at oracle.com
Tue Jun 4 04:00:55 UTC 2019


The launcher prints out the error message when the main class fails to
initialize but java.launcher.module.error5 resource that intends to
print the Caused-by exception message when running in a named module
but prints an incorrect parameter.

Very simple fix - fix the resource param indices.  Also fix a
typo: "module module <module-name>" in the output.

http://cr.openjdk.java.net/~mchung/jdk13/webrevs/8221368/webrev.00/

The error message when the main class is in an unnamed module
is printed properly and covered by an existing test
(test/jdk/tools/launcher/MainClassCantBeLoadedTest.java).

thanks
Mandy


More information about the core-libs-dev mailing list