JDK-8240094 : Optimize empty substring handling
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-02-26
  • Updated: 2024-02-20
  • Resolved: 2020-02-26
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 15
15 b13Fixed
Related Reports
CSR :  
Relates :  
Sub Tasks
JDK-8251556 :  
Description
String.substring return "" in some cases, but could be improved to do so in all cases when the substring length is zero.

Patch contributed by Sergey Tsypanov here: https://mail.openjdk.java.net/pipermail/core-libs-dev/2020-February/064948.html
Comments
The Release Note subtask and description are needed.
06-08-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/f67951f722a4 User: redestad Date: 2020-02-26 21:04:33 +0000
26-02-2020