You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jens Geyer (Jira)" <ji...@apache.org> on 2019/08/19 20:51:00 UTC
[jira] [Closed] (THRIFT-4927) The java Library
UnsupportedEncodingException is not clear
[ https://issues.apache.org/jira/browse/THRIFT-4927?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jens Geyer closed THRIFT-4927.
------------------------------
Resolution: Invalid
> 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
(v8.3.2#803003)