commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Gregory (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (LANG-969) StringUtils.toEncodedString(byte[], Charset) needlessly throws UnsupportedEncodingException
Date Mon, 10 Feb 2014 02:07:22 GMT

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

Gary Gregory edited comment on LANG-969 at 2/10/14 2:07 AM:
------------------------------------------------------------

Thank you for the report Matt, good catch!

{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}



was (Author: garydgregory):
{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: 3.3
>
>
> 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)

Mime
View raw message