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

UTF16 string gets constructed incorrectly from codepoints if CompactStrings is not enabled

XMLWordPrintable

    • b03
    • Verified

        After the changes for JDK-8311906, an attempt to compile the following pattern: "ab(\\P{all})+" fails with: java.util.regex.PatternSyntaxException: Unknown character property name {} near index 9 if compact strings is not enabled.
        As a result, javac won't work on a platform where compact strings are not enabled by default.
        However, the problem itself is platform-independent, and can be reproduced on all platforms with -XX:-CompactStrings

              avoitylov Aleksei Voitylov
              avoitylov Aleksei Voitylov
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: