[icedtea-web] RFC: launch application that have a non-public main class

Omair Majid omajid at redhat.com
Tue Oct 26 13:04:14 PDT 2010


Hi,

The attached patch bypasses checks imposed by the reflection API to 
ensure that netx is allowed to access the class it is trying to access. 
Generally, this makes complete sense. However, there are some 
applications (such as the Present/Future Value Calculator [1]) that 
declare their main method in a non public class. Netx currently fails 
with an IllegalAccessException when it encounters this.

ChangeLog
2010-10-26  Omair Majid  <omajid at redhat.com>

     * netx/net/sourceforge/jnlp/Launcher.java
     (launchApplication): Mark main method as accessible before invoking
     it.

Thanks,
Omair

[1] http://www.arbores.ca/PresentFuture.jnlp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: icedtea-web-jnlp-bypass-restirctions-to-main.patch
Type: text/x-patch
Size: 419 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20101026/f0ba854b/icedtea-web-jnlp-bypass-restirctions-to-main.patch 


More information about the distro-pkg-dev mailing list