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

OctalUnescaper code is complex, leading to bugs

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.2
    • lang.text.translate.*
    • None

    Description

      My gut is that the code in OctalUnescaper is unnecessarily complex. It feels simpler to look at the legitimate values for an Octal more explicitly.

      Thinking the current code through, it fails if you pass it \279. That should be octal \27 followed by a 9, but instead it will try to parse it as an Octal and throw a NumberFormatException.

      Attachments

        Activity

          People

            bayard Henri Yandell
            bayard Henri Yandell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: