You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Aseem Bansal (JIRA)" <ji...@apache.org> on 2016/01/29 17:44:39 UTC

[jira] [Commented] (GROOVY-7727) Cannot create unicode sequences using \Uxxxxxx

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

Aseem Bansal commented on GROOVY-7727:
--------------------------------------

I tried your code in Java.
\Uxxx failed in java also https://ideone.com/W99GOs

And that line says "provides a code point input method which accepts strings". So there is a specific method which accepts this format.

So this is not a bug. If you find the method name please do share.

> Cannot create unicode sequences using \Uxxxxxx
> ----------------------------------------------
>
>                 Key: GROOVY-7727
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7727
>             Project: Groovy
>          Issue Type: Bug
>          Components: Compiler
>    Affects Versions: 2.4.5
>            Reporter: Andres Almiray
>
> According to http://www.oracle.com/technetwork/articles/java/supplementary-142654.html 
> "For text input, the Java 2 SDK provides a code point input method which accepts strings of the form "\Uxxxxxx", where the uppercase "U" indicates that the escape sequence contains six hexadecimal digits, thus allowing for supplementary characters. A lowercase "u" indicates the original form of the escape sequences, "\uxxxx". You can find this input method and its documentation in the directory demo/jfc/CodePointIM of the J2SDK."
> The following code fails with a syntax exception
>     s = "\U01f5d0"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)