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

StringUtils.unwrap throws StringIndexOutOfBoundsException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.12.0
    • lang.*
    • None

    Description

      Calling

      StringUtils.unwrap("ababa", "aba");

      throws java.lang.StringIndexOutOfBoundsException: String index out of range: -1

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tonyliang Tony Liang
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 40m
                  40m