groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jochen Theodorou (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GROOVY-4378) Incorrect handling of unicode escape sequences when calculating source locations
Date Sat, 03 Jun 2017 15:44:04 GMT

    [ https://issues.apache.org/jira/browse/GROOVY-4378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16035998#comment-16035998
] 

Jochen Theodorou commented on GROOVY-4378:
------------------------------------------

I think unicode escape sequences in identifiers must be supported. But it might be ok to not
to support something like \uuuuu9fa5

> Incorrect handling of unicode escape sequences when calculating source locations
> --------------------------------------------------------------------------------
>
>                 Key: GROOVY-4378
>                 URL: https://issues.apache.org/jira/browse/GROOVY-4378
>             Project: Groovy
>          Issue Type: Bug
>            Reporter: Andrew Eisenberg
>            Assignee: Jochen Theodorou
>             Fix For: 1.8-rc-2, 1.7.9
>
>         Attachments: GROOVY-4378.patch, unicode.patch
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> When compiling this code with Groovy 1.7.3:
> {code}
> class One {
> 	 /*\u00E9*/ Stack<F> plates;
> }
> {code}
> I get the following error message:
> {code}
> $ groovy One.groovy
> org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
> /private/tmp/One.groovy: 2: unable to resolve class F 
>  @ line 2, column 15.
>    	 /*\u00E9*/ Stack<F> plates;
>                  ^
> 1 error
> {code}
> I would expect the ^ to be under the 'F'.  It appears that the unicode sequence is being
considered a single character, rather than 6 characters.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message