RichFaces JSMin compressor can create invalid Javascript
--------------------------------------------------------
Key: RF-4582
URL:
https://jira.jboss.org/jira/browse/RF-4582
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Environment: Windows XP
Reporter: Matt Wheeler
If a Javascript file has something like:
var something = 'abc' + ++this.increment;
then, after compression, it will look something like var a='abc'+++this.increment.
This may not be the exact translation, but, the important part is the three plus signs
together which make the Javascript invalid. It can of course be fixed by changing the
original script to var something = 'abc' + (++this.increment);, but everyone may
not have that liberty. I tried this with the YUI Compressor, and it seemed to handle it
correctly, but we could not use that for other reasons.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira