Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.2Release
-
Fix Version/s: 2.1.2Release
-
Component/s: Editor
-
Labels:None
-
Number of attachments :
Description
Type this into a groovy editor:
"\u00E9"
jj
Notice that the underlining is under '0E' instead of 'jj'. This is implying that the source locations are not correct because of the unicode character in the parens.
Issue Links
- depends upon
-
GROOVY-4378
Incorrect handling of unicode escape sequences when calculating source locations
-
- duplicates
-
GRECLIPSE-896
JUnit Tests not found when defining final string with unicode character
-
- is duplicated by
-
GRECLIPSE-852
Groovy Test will not run in plugin versions higher than 2.0.0
-
The problem comes around from org.codehaus.groovy.antlr.UnicodeEscapingReader, which will automatically read extra characters if the appropriate escape sequence is used. So, multiple characters can be consumed by the reader even though the GroovyLexer receives a single character.