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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • 8
    • 8
    • core-libs
    • None
    • b117
    • 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

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

                Dates

                  Created:
                  Updated:
                  Resolved: