commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Duncan Jones (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (LANG-1056) StringEscapeUtils.unescapeHtml4 java.lang.IllegalArgumentException
Date Mon, 12 Dec 2016 15:01:59 GMT

     [ https://issues.apache.org/jira/browse/LANG-1056?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Duncan Jones closed LANG-1056.
------------------------------
    Resolution: Duplicate
      Assignee: Duncan Jones

I agree, seems an exact duplicate. I'm closing it as such.

> StringEscapeUtils.unescapeHtml4 java.lang.IllegalArgumentException
> ------------------------------------------------------------------
>
>                 Key: LANG-1056
>                 URL: https://issues.apache.org/jira/browse/LANG-1056
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.*
>    Affects Versions: 3.3.2
>         Environment: Ubuntu 64
>            Reporter: Jakub
>            Assignee: Duncan Jones
>
> When I try to unescape 
> {code:java}
> String test = "test &#39511154;";
> StringEscapeUtils.unescapeHtml4(test);
> {code}
> I got :
> {noformat}
> java.lang.IllegalArgumentException
> 	at java.lang.Character.toChars(Character.java:4982)
> 	at org.apache.commons.lang3.text.translate.NumericEntityUnescaper.translate(NumericEntityUnescaper.java:128)
> 	at org.apache.commons.lang3.text.translate.AggregateTranslator.translate(AggregateTranslator.java:52)
> 	at org.apache.commons.lang3.text.translate.CharSequenceTranslator.translate(CharSequenceTranslator.java:85)
> 	at org.apache.commons.lang3.text.translate.CharSequenceTranslator.translate(CharSequenceTranslator.java:59)
> 	at org.apache.commons.lang3.StringEscapeUtils.unescapeHtml4(StringEscapeUtils.java:627)
> 	at unescapeHtml4Test.Main.main(Main.java:10)
> {noformat}
> It is a bug or not? Method should return "test &#39511154" without exception or not?.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message