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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 3.8.1
    • 3.10
    • lang.text.*
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            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

                Slack

                  Issue deployment