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

(str) StringJoiner subsequence on suffix always returns whole suffix instead of requested part

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      If a StringJoiner has been constructed and the user requests a subSequence that is entirely within the bounds of the suffix, then the entire suffix is returned instead of the requested subSequence.

      Example:
      StringJoiner sj = new StringJoiner("-","Begin<", ">End"); sj.add("Foo");
      then sj.subSequence( 10, 13 ) returns ">End" instead of "End"

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jgish Jim Gish
                Reporter:
                jgish Jim Gish
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: