You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Benjamin Gould (JIRA)" <ji...@apache.org> on 2016/11/02 02:03:58 UTC
[jira] [Assigned] (THRIFT-2695) Generated Java Client interface
should implement java.lang.AutoCloseable
[ https://issues.apache.org/jira/browse/THRIFT-2695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Gould reassigned THRIFT-2695:
--------------------------------------
Assignee: Benjamin Gould
> 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
> Assignee: Benjamin Gould
> 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)