JDK14 changed the error reporting string, which makes our algorithm
fail. Make sure we account for it.
JIRA: YANGTOOLS-1418
Change-Id: Iea9866c6f98508851f0d558d7e2422740e91ef87
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
d99e8743a288ba07b641cf20840ae1ed6c67c8fa)
if (capturedGroup.startsWith("In/Is")) {
// Java 9 changed the reporting string
capturedGroup = capturedGroup.substring(5);
+ } else if (capturedGroup.startsWith("Is")) {
+ // Java 14 changed the reporting string (https://bugs.openjdk.java.net/browse/JDK-8230338)
+ capturedGroup = capturedGroup.substring(2);
}
if (JAVA_UNICODE_BLOCKS.contains(capturedGroup)) {