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

Specification shows wrong result for Pattern.split() examples.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • core-libs
    • beta
    • sparc
    • solaris_7
    • Verified

      Specification for Class Pattern contains split() method. The example used to describe how split(CharSequence input) works shows wrong results for
      Regex Result
      e {"one",":two:thr"}
      where input is "one:two:three".
      The result should be {"on",":two:thr"}

      Also the result is wrong for the result of split(CharSequence input, int linit) method. Last two results for Regex "e" are wrong.

            mmcclosksunw Michael Mccloskey (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: