Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8240094 Optimize empty substring handling
  3. JDK-8251556

Release Note: Optimized Empty Substring Handling

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: P4
    • Resolution: Delivered
    • Affects Version/s: 15
    • Fix Version/s: 15
    • Component/s: core-libs
    • Subcomponent:
    • Verification:
      Verified

      Description

      The implementation of `String.substring` and related methods `stripLeading` and `stripTrailing` have changed in this release to avoid redundantly creating a new empty String. This may impact code that depends on unspecified behaviour and the identity of empty sub-strings.

        Attachments

          Activity

            People

            Assignee:
            redestad Claes Redestad
            Reporter:
            cwayne Clifford Wayne
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: