[ http://issues.apache.org/jira/browse/LANG-292?page=all ]

Henri Yandell updated LANG-292:
-------------------------------

    Fix Version/s: 3.0

Test confirmed:

Testcase: testNumberOverflow(org.apache.commons.lang.EntitiesTest): FAILED
expected:<&#12345678;> but was:<?>
junit.framework.ComparisonFailure: expected:<&#12345678;> but was:<?>
    at 
org.apache.commons.lang.EntitiesTest.doTestUnescapeEntity(EntitiesTest.java:101)
    at 
org.apache.commons.lang.EntitiesTest.testNumberOverflow(EntitiesTest.java:201)

> unescapeXml("&12345678;") should be "&12345678;"
> ------------------------------------------------
>
>                 Key: LANG-292
>                 URL: http://issues.apache.org/jira/browse/LANG-292
>             Project: Commons Lang
>          Issue Type: Bug
>    Affects Versions: Nightly Builds
>            Reporter: Stepan Koltsov
>            Priority: Minor
>             Fix For: 3.0
>
>
> Following test (in EntitiesTest.java) fails:
>     public void testNumberOverflow() throws Exception {
>         doTestUnescapeEntity("&#12345678;", "&#12345678;");
>         doTestUnescapeEntity("x&#12345678;y", "x&#12345678;y");
>         doTestUnescapeEntity("&#x12345678;", "&#x12345678;");
>         doTestUnescapeEntity("x&#x12345678;y", "x&#x12345678;y");
>     }
> Maximim value for char is 0xFFFF, so &#12345678; is invalid entity reference, 
> and so should be left as is.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to