Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8269150

UnicodeReader not translating \u005c\\u005d to \\]

XMLWordPrintable

    • b33
    • Verified

        In the example

        public class T {
          public static void main(String[] args) {
            System.out.println("\u005C\\u005D");
          }
        }

        The leading \u005C, equivalent to a backslash, should escape the following backslash and the output should be "\]". This was broken by JDK-8254073 (and subsequent patches) in JDK 16. JDK 16 generates an 'invalid escape' error.




              jlaskey Jim Laskey
              jlaskey Jim Laskey
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: