thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "pengzhouhu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (THRIFT-4927) The java Library UnsupportedEncodingException is not clear
Date Fri, 16 Aug 2019 03:30:00 GMT

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

pengzhouhu commented on THRIFT-4927:
------------------------------------

Sorry, please forgive me for not responding to you in time.
You are right, and it’s nice to see that he has optimized the code in the master, so the
issue can be closed.

> The java Library UnsupportedEncodingException is not clear
> ----------------------------------------------------------
>
>                 Key: THRIFT-4927
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4927
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Java - Library
>    Affects Versions: 0.12.0
>            Reporter: pengzhouhu
>            Priority: Minor
>
> In the TSaslTransport and TSaslClientTransport java classes,
> After the try catch UnsupportedEncodingException for the code new String(payload,"UTF-8")
and getBytes("UTF-8")
> Throw new TTransportException(e);
> This exception is ambiguous and should be consistent with the processing of other classes;
> Throw new TTransportException("JVM DOES NOT SUPPORT UTF-8");
> So I took the branch and modified it.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Mime
View raw message