You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Andres Almiray (JIRA)" <ji...@apache.org> on 2016/01/08 10:48:39 UTC
[jira] [Created] (GROOVY-7727) CAnnot create unicode sequences
using \Uxxxxxx
Andres Almiray created GROOVY-7727:
--------------------------------------
Summary: 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)