RFR: 8245153 Unicode encoded double-quoted empty string does not compile
Roland Illig
roland.illig at gmx.de
Thu May 28 14:57:41 UTC 2020
On 28.05.2020 14:02, Jim Laskey wrote:
> Your test should include:
>
> String s1 = \u0022\u0022;
> String s2 = "\u0022;
> String s3 = \u0022";
> String s4 = \u0022\\u0022\u0022;
s4.length == 6, according to JLS14 § 3.3, keyword "eligible".
I'm not sure whether that was intended or not, therefore I'd add:
String s5 = \u0022\u005C\u0022\u0022;
More information about the compiler-dev
mailing list