JDK 22 | JDK 23 |
---|---|
22Fixed | 23 b03Fixed |
Relates :
|
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
|