[ 
https://issues.apache.org/jira/browse/LANG-969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13895127#comment-13895127
 ] 

Gary Gregory commented on LANG-969:
-----------------------------------

Looks like a bug, probably a cut and paste error. This should be fixed in 4.0 
since we cannot break binary compatibility.

> StringUtils.toEncodedString(byte[], Charset) needlessly throws exception
> ------------------------------------------------------------------------
>
>                 Key: LANG-969
>                 URL: https://issues.apache.org/jira/browse/LANG-969
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.*
>    Affects Versions: 3.2.1
>         Environment: Any
>            Reporter: Matt Bishop
>            Priority: Minor
>             Fix For: 4.0
>
>
> This new method throws UnsupportedEncodingException when passed in a Charset 
> object. Why?
> new String(byte[], Charset) does not throw this exception.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to