Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-1119

Strings.replaceAll giving StringIndexOutOfBoundsException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.0-beta4
    • 1.3.0-rc1
    • wicket
    • None

    Description

      When replacing & characters it craps out.. this fixes it:

      Index: /Users/John/Development/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/util/string/Strings.java
      ===================================================================
      — /Users/John/Development/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/util/string/Strings.java (revision 589777)
      +++ /Users/John/Development/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/util/string/Strings.java (working copy)
      @@ -1327,7 +1327,7 @@
      }
      else

      { - matchIndex = s.toString().indexOf(searchString); + matchIndex = s.toString().indexOf(searchString, pos); }

      return matchIndex;
      }

      Attachments

        Activity

          People

            ivaynberg Igor Vaynberg
            jdpatterson John Patterson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: