Request push 7067922 for 7u2
Kumar Srinivasan
kumar.x.srinivasan at oracle.COM
Thu Aug 4 07:43:39 PDT 2011
Hi,
Request push to 7u2.
CR Bug description <can't find it on bugs.sun.com>:
If you create a jar file WITHOUT a “Main-Class” manifest field, and you try to run it by java –jar xxx.jar using Java 7 b147, you get this:
Exception in thread "main" java.lang.NullPointerException
at sun.launcher.LauncherHelper.getMainClassFromJar(LauncherHelper.java:399)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:463)
However if you do the same thing in Java 6, you get this:
Failed to load Main-Class manifest attribute from
stringbenchmarkmissingmainclass.jar
Review discussion:
http://mail.openjdk.java.net/pipermail/core-libs-dev/2011-July/007165.html
Webrev:
http://cr.openjdk.java.net/~ksrini/7067922/webrev.0/
Changeset:
http://hg.openjdk.java.net/jdk8/tl/jdk/rev/d17eb3380a49
Thanks
Kumar
More information about the jdk7u-dev
mailing list