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

StringUtils.unwrap incorrect throw StringIndexOutOfBoundsException

    XMLWordPrintableJSON

    Details

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

      Description

      Call

       StringUtils.unwrap("a", 'a'); 

      or

       StringUtils.unwrap("a", "a"); 

      Throw Exception:

      java.lang.StringIndexOutOfBoundsException: begin 1, end 0, length 1

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kinow Bruno P. Kinoshita
                Reporter:
                tai Tai Dupree
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 10m Original Estimate - 10m
                  10m
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h