Request push 7067922 for 7u2
Edvard Wendelin
edvard.wendelin at oracle.com
Thu Aug 4 08:10:50 PDT 2011
Approved!
Cheers,
Edvard
Skickat från min iPhone
4 aug 2011 kl. 17:43 skrev Kumar Srinivasan <kumar.x.srinivasan at oracle.com>:
> 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