Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8028321

Fix for String.split() empty input sequence/JDK-6559590 triggers regression.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b117
    • Verification:
      Verified

      Backports

        Description

        The change for JDK-6559590, which updated the spec/implementation to always return empty resulting array for empty input triggers regression in various places. It appears jdk implementation has dependency on the "old" behavior -- return a 1-length array only includes an empty string itself.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  sherman Xueming Shen
                  Reporter:
                  sherman Xueming Shen
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: