Thomas E Deweese wrote:
There is at least one bug outstanding with this in Rhino. If you establish a new context handle in a static initializer block it will cause Rhino to fail - even when you surround it with a PriviledgedAction block. I can't remember the exact details now (it was about a month ago that I discovered this) but it was failing to find one of it's property files using ClassLoader.getSystemResourceAsStream(). If you started it in a non-static code block, everything ran fine. This seems to be some sort of interaction problem between the JVM, Rhino and possibly the OJI interface (could replicate in both Mozilla and IE). Here's my bug report on it:GW> I suspect Batik may be doing something funny with the class GW> loader. Applets are special when it comes to class loading, as GW> all loading must be done by the applet class loader provided by GW> the browser.I'm guessing we are setting up the JavaScript Interpreter in a seperate ClassLoader (as permissions are most relyably granted/revoked on a classloader basis), it is also possible that the problem is fundamental with the rhino interpreter as I think it converts javascript to java 'on the fly' - which probably means it creates it's own class loader.
http://bugzilla.mozilla.org/show_bug.cgi?id=174179
Note that the Mozilla folks don't believe it is in Rhino itse;f, but in the OJI interaction. In my testing I don't happen to believe that, but that is something for them to decide....
--
Justin Couch http://www.vlc.com.au/~justin/
Java Architect & Bit Twiddler http://www.yumetech.com/
Author, Java 3D FAQ Maintainer http://www.j3d.org/
-------------------------------------------------------------------
"Humanism is dead. Animals think, feel; so do machines now.
Neither man nor woman is the measure of all things. Every organism
processes data according to its domain, its environment; you, with
all your brains, would be useless in a mouse's universe..."
- Greg Bear, Slant
-------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
