openjdk cannot run yui compressor

Bug #287035 reported by Craig
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openjdk-6 (Ubuntu)
Undecided
Unassigned

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)

Revision history for this message
Craig (candrews-integralblue) wrote :
Revision history for this message
Craig (candrews-integralblue) wrote :

Turns out the solution for 255149 also fixes this bug.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.