[jdk17] RFR: JDK-8269150 Unicode \u005C not treated as an escaping backslash

Jonathan Gibbons jjg at openjdk.java.net
Wed Jun 23 15:56:25 UTC 2021

On Wed, 23 Jun 2021 15:30:25 GMT, Jim Laskey <jlaskey at openjdk.org> wrote:

> \u005C Unicode escape sequence not being treated as a backslash for general escape sequences.

Changes requested by jjg (Reviewer).

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?


PR: https://git.openjdk.java.net/jdk17/pull/126

More information about the compiler-dev mailing list