JDK-8043186 : javac test langtools/tools/javac/util/StringUtilsTest.java fails
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2014-05-14
  • Updated: 2014-07-29
  • Resolved: 2014-05-16
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
8u20Fixed 9 b15Fixed
Related Reports
Relates :  
Relates :  
Relates :  
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 to JDK-8041791:

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 JDK-8041791).
AutoVerify: Tests ran fine for JDK9-b15

Failed test: tools/javac/util/StringUtilsTest.java