incubator-adffaces-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthias We├čendorf (JIRA) <adffaces-iss...@incubator.apache.org>
Subject [jira] Assigned: (ADFFACES-320) Obfuscation of addition statement where one of the items being added is an increment statement
Date Thu, 22 Feb 2007 06:57:05 GMT

     [ https://issues.apache.org/jira/browse/ADFFACES-320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Matthias We├čendorf reassigned ADFFACES-320:
-------------------------------------------

    Assignee: Adam Winer

> Obfuscation of addition statement where one of the items being added is an increment
statement
> ----------------------------------------------------------------------------------------------
>
>                 Key: ADFFACES-320
>                 URL: https://issues.apache.org/jira/browse/ADFFACES-320
>             Project: MyFaces ADF-Faces
>          Issue Type: Bug
>          Components: Build
>         Environment: maven-javascript-plugin
>            Reporter: Matt Cooper
>         Assigned To: Adam Winer
>            Priority: Minor
>         Attachments: obfuscator.plugin.patch, obfuscator.plugin2.patch
>
>
> If you have JavaScript code like the following:
> var x = 1;
> var y = "" + ++x;
> It is a legal operation.  However, if this code is run through the maven-javascript-plugin,
the second line becomes something like this:
> var y=""+++x;
> This yields an invalid increment operand.  Instead, the space between the "+" and the
"++" must be preserved.  I also suspect (but have not tested) this may be a problem with this
code too:
> var a = 1;
> var b = a++ + "";
> I suspect the increment and the decrement tokens in the obfuscater just need to be tagged
as space sensitive (both before and after)--so we don't remove the spaces when compacting
the code.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message