[jdk17] RFR: JDK-8269150 Unicode \u005C not treated as an escaping backslash
Jim Laskey
jlaskey at openjdk.java.net
Wed Jun 23 15:56:26 UTC 2021
On Wed, 23 Jun 2021 15:50:40 GMT, Jonathan Gibbons <jjg at openjdk.org> wrote:
>> \u005C Unicode escape sequence not being treated as a backslash for general escape sequences.
>
> test/langtools/tools/javac/T8269150/T8269150.java line 33:
>
>> 31: public class T8269150 {
>> 32: public static void main(String... args) {
>> 33: System.err.println("\u005C\\u005D");
>
> This seems to be a very weak "don't crash" test.
> Shouldn't it check what is printed as well?
Sure
-------------
PR: https://git.openjdk.java.net/jdk17/pull/126
More information about the compiler-dev
mailing list