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

Omair Majid omajid at redhat.com
Wed Oct 27 06:44:22 PDT 2010


On 10/26/2010 05:45 PM, Deepak Bhole wrote:
> * Omair Majid<omajid at redhat.com>  [2010-10-26 17:22]:
>> 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.
>>
>
> Ugh. This shouldn't even be allowed :/
>

Yeah, I have mixed feelings about this too. But the Oracle Java Web 
Start runs it, so we should too.

> Anyway, we should follow the ri. Ok for HEAD.
>

Thanks for the review. Pushed.

Cheers,
Omair



More information about the distro-pkg-dev mailing list