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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 1.4.0
    • Affects Version/s: 1.4.0
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: