← Back to team overview

openjdk team mailing list archive

[Bug 287035] [NEW] openjdk cannot run yui compressor

 

Public bug reported:

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)

** Affects: openjdk-6 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
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)



Follow ups

References