[ 
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)

Reply via email to