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

StringUtils.unwrap incorrect throw StringIndexOutOfBoundsException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.10
    • lang.*
    • 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

              kinow Bruno P. Kinoshita
              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