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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 8
    • core-libs
    • None

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

            hannesw Hannes Wallnoefer
            jlaskey Jim Laskey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: