openjdk team mailing list archive
-
openjdk team
-
Mailing list archive
-
Message #01069
[Bug 287035] Re: openjdk cannot run yui compressor
*** This bug is a duplicate of bug 255149 ***
https://bugs.launchpad.net/bugs/255149
Turns out the solution for 255149 also fixes this bug.
** This bug has been marked a duplicate of bug 255149
javascript script support through rhino should not be on bootclasspath
--
openjdk cannot run yui compressor
https://bugs.launchpad.net/bugs/287035
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-6 in ubuntu.
Status in “openjdk-6” source package in Ubuntu: New
Bug description:
Get the YUI Compressor from http://www.julienlecomte.net/yuicompressor/ (I've tested against 2.3.5 and 2.3.6 - both fail).
Extract the zip, cd to the "build" directory. Create a text file named "test.js" and put some valid javascript in there (I just put in one line that says "alert('test');").
Run:
java -jar yuicompressor-2.3.6.jar test.js
With Sun Java, no error is reported and it works.
With OpenJDK build 1.6.0_0-b11 (which is in Hardy Updates), no error is reported, and it works fine.
With OpenJDK build 1.6.0_0-b12 (which is in Intrepid Main), you get this error:
Exception in thread "main" java.lang.RuntimeException
at com.yahoo.platform.yui.compressor.JavaScriptCompressor.printSourceNumber(JavaScriptCompressor.java:299)
at com.yahoo.platform.yui.compressor.JavaScriptCompressor.parse(JavaScriptCompressor.java:335)
at com.yahoo.platform.yui.compressor.JavaScriptCompressor.<init>(JavaScriptCompressor.java:532)
at com.yahoo.platform.yui.compressor.YUICompressor.main(YUICompressor.java:120)
References