JDK-8030726 : tools/javac/NoStringToLower.java fails due to enforcement no use of String.toLowerCase on non-langtools classes
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 9
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2013-12-18
  • Updated: 2014-08-05
  • Resolved: 2013-12-19
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.
JDK 8 JDK 9
8u20Fixed 9 b01Fixed
Related Reports
Relates :  
Description
The test tools/javac/NoStringToLower.java enforces a rule that String.toLowerCase is not used in any langtools source.  However, the test is enforcing this on any class with the package prefix com.sun.tools.  The result is that we are enforcing this rule on classes that do not originate from langtools source.

To ensure that this does not happen, the test should enforce the rule for the following package prefixes:

com.sun.tools.classfile
com.sun.tools.doclet
com.sun.tools.doclint
com.sun.tools.javac
com.sun.tools.javadoc
com.sun.tools.javah
com.sun.tools.javap
com.sun.tools.jdeps
com.sun.tools.sjavac

Priority is P2, as this is a test failure.