javascript script support through rhino should not be on bootclasspath
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenJDK |
Fix Released
|
Medium
|
|||
openbravo |
Confirmed
|
Undecided
|
Unassigned | ||
openjdk-6 (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
I'm trying to run a custom rhino to build Dojo, but OpenJDK keeps ignoring the rhino in the jar file I provide and keeps loading rhino from the system libs:
$ java -verbose:class -jar ../shrinksafe/
...
[Opened /usr/lib/
[Loaded org.mozilla.
[Loaded org.mozilla.
[Loaded org.mozilla.
...
If I specify a classpath, it still loads from the system rhino library:
$ java -classpath ../shrinksafe/ -verbose:class -jar ../shrinksafe/
...
[Opened /usr/lib/
[Loaded org.mozilla.
[Loaded org.mozilla.
[Loaded org.mozilla.
...
If I change over to using sun's JRE, it works fine:
$ sudo update-
$ java -verbose:class -jar ../shrinksafe/
...
[Loaded org.mozilla.
[Loaded org.mozilla.
[Loaded org.mozilla.
...
Related branches
Changed in openjdk-6: | |
importance: | Undecided → High |
milestone: | none → ubuntu-8.10-beta |
status: | New → Confirmed |
Changed in openjdk: | |
status: | Unknown → Confirmed |
Changed in openjdk-6 (Ubuntu): | |
milestone: | ubuntu-8.10-beta → ubuntu-9.10-beta |
Changed in openbravo: | |
status: | New → Confirmed |
Changed in openjdk: | |
status: | Confirmed → In Progress |
Changed in openjdk: | |
status: | In Progress → Fix Released |
Changed in openjdk: | |
importance: | Unknown → Medium |
The current setup of the javax.scripting engine that handles javascript through rhino depends on having all the rhino classes on the bootclasspath. See: mail.openjdk. java.net/ pipermail/ build-dev/ 2008-June/ 001176. html
http://
The problem is that the current javax.scripting javascript engine relies on all of the rhino classes being on the bootclasspath. This interferes badly when someone tries to compile their own rhino with possible different signatures (because the version on the bootclasspath is picked up first). See: www.openoffice. org/issues/ show_bug. cgi?id= 91641
http://
To work around this the javascript engine needs to refactored to use a separate classloader to load the rhino classes.