You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2014/02/10 03:07:21 UTC
[jira] [Resolved] (LANG-969) StringUtils.toEncodedString(byte[],
Charset) needlessly throws UnsupportedEncodingException
[ https://issues.apache.org/jira/browse/LANG-969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary Gregory resolved LANG-969.
-------------------------------
Resolution: Fixed
Assignee: Gary Gregory
{noformat}
commit -m "<action issue="LANG-969" type="fix" dev="ggregory" due-to="Matt Bishop">StringUtils.toEncodedString(byte[], Charset) needlessly throws UnsupportedEncodingException</action>" C:/vcs/svn/apache/commons/trunks-proper/lang/src/changes/changes.xml C:/vcs/svn/apache/commons/trunks-proper/lang/src/main/java/org/apache/commons/lang3/StringUtils.java
Sending C:/vcs/svn/apache/commons/trunks-proper/lang/src/changes/changes.xml
Sending C:/vcs/svn/apache/commons/trunks-proper/lang/src/main/java/org/apache/commons/lang3/StringUtils.java
Transmitting file data ...
Committed revision 1566489.
{noformat}
> StringUtils.toEncodedString(byte[], Charset) needlessly throws UnsupportedEncodingException
> -------------------------------------------------------------------------------------------
>
> 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
> Assignee: Gary Gregory
> 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)