$ at the end of replace string causes index out of range error

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 8
    • Component/s: core-libs
    • None

      jjs> "string".replace("i", "$");
      java.lang.StringIndexOutOfBoundsException: String index out of range: 1

            Assignee:
            Hannes Wallnoefer
            Reporter:
            Jim Laskey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: