Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8048476 | 8u25 | Jan Lahoda | P3 | Resolved | Fixed | b05 |
JDK-8046335 | 8u20 | Jan Lahoda | P3 | Resolved | Fixed | b20 |
JDK-8052623 | emb-8u26 | Jan Lahoda | P3 | Resolved | Fixed | b17 |
Description
The langtools/tools/javac/util/StringUtilsTest.java test fails with:
java.lang.IllegalStateException: expected=2; actual=4
at StringUtilsTest.assertEquals(StringUtilsTest.java:63)
at StringUtilsTest.run(StringUtilsTest.java:52)
at StringUtilsTest.main(StringUtilsTest.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:484)
at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:759)
at java.lang.Thread.run(Thread.java:745)
Appears to be related toJDK-8041791:
http://hg.openjdk.java.net/jdk9/dev/jdk/rev/6d8b6c20a32b
This is not only related to a test, javadoc output may be affected in some (possibly rare) cases (as javadoc expects that the index returned by .toLowerCase().indexOf() is applicable to the original string, which is not generally the case afterJDK-8041791).
java.lang.IllegalStateException: expected=2; actual=4
at StringUtilsTest.assertEquals(StringUtilsTest.java:63)
at StringUtilsTest.run(StringUtilsTest.java:52)
at StringUtilsTest.main(StringUtilsTest.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:484)
at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:759)
at java.lang.Thread.run(Thread.java:745)
Appears to be related to
http://hg.openjdk.java.net/jdk9/dev/jdk/rev/6d8b6c20a32b
This is not only related to a test, javadoc output may be affected in some (possibly rare) cases (as javadoc expects that the index returned by .toLowerCase().indexOf() is applicable to the original string, which is not generally the case after
Attachments
Issue Links
- backported by
-
JDK-8046335 javac test langtools/tools/javac/util/StringUtilsTest.java fails
-
- Resolved
-
-
JDK-8048476 javac test langtools/tools/javac/util/StringUtilsTest.java fails
-
- Resolved
-
-
JDK-8052623 javac test langtools/tools/javac/util/StringUtilsTest.java fails
-
- Resolved
-
- relates to
-
JDK-8029800 Flags.java uses String.toLowerCase without specifying Locale
-
- Closed
-
-
JDK-8030623 Remove unused com.sun.tools.doclets.formats.html.MethodWriterImpl.parseCodeTag method
-
- Resolved
-
-
JDK-8041791 String.toLowerCase regression - violates Unicode standard
-
- Closed
-
(1 relates to)