Nikolay Metchev created THRIFT-2695:
---------------------------------------
Summary: Generated Java Client interface should implement
java.lang.AutoCloseable
Key: THRIFT-2695
URL: https://issues.apache.org/jira/browse/THRIFT-2695
Project: Thrift
Issue Type: Improvement
Components: Java - Compiler, Java - Library
Reporter: Nikolay Metchev
Priority: Minor
A Java 7 and above client should really implement the java.lang.AutoCloseable
interface to make client code easier with a try-with-resource clause.
The close method could be implemented in org.apache.thrift.TServiceClient as
follows:
iprot_.getTransport().close()
oprot_.getTransport().close()
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)