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

unescapeXml("&12345678;") should be "&12345678;"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.3
    • None
    • None

    Description

      Following test (in EntitiesTest.java) fails:

      public void testNumberOverflow() throws Exception

      { doTestUnescapeEntity("�", "�"); doTestUnescapeEntity("x�y", "x�y"); doTestUnescapeEntity("�", "�"); doTestUnescapeEntity("x�y", "x�y"); }

      Maximim value for char is 0xFFFF, so � is invalid entity reference, and so should be left as is.

      Attachments

        1. LANG-292.patch
          2 kB
          Henri Yandell

        Activity

          People

            Unassigned Unassigned
            yozh Stepan Koltsov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: