Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1453

StringUtils.removeIgnoreCase("İa", "a") throws IndexOutOfBoundsException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.8.1
    • Fix Version/s: 3.10
    • Component/s: lang.text.*
    • Labels:
      None

      Description

      try

      { String s = StringUtils._removeIgnoreCase_("İa", "a"); }

      catch (Exception e)

      { e.printStackTrace(); }

      output

      java.lang.IndexOutOfBoundsException: start 3, end 2, s.length() 2

      at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:539)

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                neerup Thomas Neerup
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 40m
                  2h 40m