Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-4927

The java Library UnsupportedEncodingException is not clear

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Invalid
    • Affects Version/s: 0.12.0
    • Fix Version/s: None
    • Component/s: Java - Library
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              pengzhouhu pengzhouhu
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: