[ 
https://issues.apache.org/jira/browse/JENA-736?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14049886#comment-14049886
 ] 

Andy Seaborne commented on JENA-736:
------------------------------------

See the codebase, use a snapshot.

{noformat}
public interface QueryExecution extends AutoCloseable 
{noformat}

Jena has not made a release that is java7+ only.  That's the next one 2.12.0.

> QueryExecution should implement AutoClosable
> --------------------------------------------
>
>                 Key: JENA-736
>                 URL: https://issues.apache.org/jira/browse/JENA-736
>             Project: Apache Jena
>          Issue Type: Improvement
>            Reporter: Benson Margulies
>
> This would be nice ...
> {noformat}
>  try (QueryExecution qexec = 
> QueryExecutionFactory.sparqlService("http://dbpedia.org/sparql";, query)) {
>             ResultSet results = qexec.execSelect();
>             for (; results.hasNext(); ) {
>                 // Result processing is done here.
>             }
>         }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to