Editor parses string literals incorrectly. Doesn't recognize unicode escape 
sequences.
---------------------------------------------------------------------------------------

                 Key: MJAVACC-97
                 URL: http://jira.codehaus.org/browse/MJAVACC-97
             Project: Maven 2.x JavaCC Plugin
          Issue Type: Bug
          Components: javacc
    Affects Versions: 2.2
            Reporter: Elham 
            Priority: Blocker



I have bellow code line in my jj file :
"versions[uid/value=../latestTrunkUid/value]/data[@xsi:type=\"ns2:" + 
aqlEntity.ns2XmlName + "\"]"

and when I compile it with maven-JavaCC-plugin this code is generated .
"versions[uid/value=../latestTrunkUid/value]/data[@xsi:type=\u005c"ns2:" + 
aqlEntity.ns2XmlName + "\u005c"]"

\u005c is the escape sequence for backslash. Because of the unfortunate way 
Java handles unicode escape sequences, the string literal above is equivalent 
to "\"".

This comes up for me because JavaCC generates those kind of literals and 
IntelliJ highlights them as errors. I should probably file a bug against JavaCC 
as well because it's confusing.




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to