JDK-8071571 : Move substring of same string to slow path
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 9
  • Priority: P5
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-01-26
  • Updated: 2015-06-04
  • Resolved: 2015-05-15
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 9
9 b66Fixed
Related Reports
Relates :  
Description
Also fix bad formatting starting from line 261 to line 265 and at line 178 in java/lang/String.java
http://hg.openjdk.java.net/jdk9/dev/jdk/file/6ef2c9a31222/src/java.base/share/classes/java/lang/String.java#l261
http://hg.openjdk.java.net/jdk9/dev/jdk/file/6ef2c9a31222/src/java.base/share/classes/java/lang/String.java#l178

Comments
Another round of review: http://mail.openjdk.java.net/pipermail/core-libs-dev/2015-May/033307.html
11-05-2015

Posted for review: http://mail.openjdk.java.net/pipermail/core-libs-dev/2015-March/032573.html
27-03-2015

It may be worthwhile to combine this fix with some other modifications to String.java. E.g. micro-optimizations to substring(): http://cr.openjdk.java.net/~igerasim/String.substring.optimization/0/webrev/
27-01-2015