Download Firefox: WindowsMac OS X
logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: SISC in applets: msg#00000

Subject: Re: SISC in applets
Turadg Aleahmad wrote:

1) SISC can't even load because the options in sisc.util.Util use System.getProperty(). On class load, this throws an AccessControlException on the PropertyPermission. To remedy this I've written and checked in a safeGetProperty () method that returns the default value if there is no permission.

That's a reasonable change. Thanks for the patch. PS: next time please don't reformat the entire file.

2) With applet-level permissions, loading the heap takes much much longer (~ 1 min). If I go into the Java Plugin control panel and grant my applet AllPermission, it doesn't take but a few seconds. This may be due to my remedy above, but I can't tell since if I omit it, the applet can't even load.

My guess is that something is throwing lots of exception which are caught and reverting to some default behaviour. I don't think it's caused by your change though since that code should only get called once, on startup. If the slowdown really happens during heap loading then this narrows down the list of culprits significantly. I had a quick look at the deserialization code but couldn't spot anything obvious.

3) The only way to set options like permitInterupts in an applet-environment requires using the JPI control panel. This is rather cumbersome. If my applet has AllPermission, I can set the system property before Util loads, but under applet-level permissions there is no way to set this option without requiring the user to modify his JPI settings.

Stick a custom sisc/util/Defaults.class at the beginning of your class path.


Mathias.



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01


<Prev in Thread] Current Thread [Next in Thread>