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

Andy Seaborne commented on JENA-2303:
-------------------------------------

OK - fix and expose those components.

(not that functionality of RDFLinkModular exactly; they are used for operations 
and grumble if the link component is null. UnsupportedOperation not NPE)

> Resource leak in RDFConnectionAdapter
> -------------------------------------
>
>                 Key: JENA-2303
>                 URL: https://issues.apache.org/jira/browse/JENA-2303
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: ARQ
>    Affects Versions: Jena 4.5.0
>            Reporter: Claus Stadler
>            Assignee: Andy Seaborne
>            Priority: Minor
>
> * There is a resource leak in RDFConnectionAdapter:
> {code:java}
> public class RDFConnectionAdapter implements RDFConnection {
>     @Override
>     public QueryExecution query(Query query) {
>         QueryExec queryExec = get().query(query); // This line leaks resources
>         return adapt(get().query(query));
>     }
> }
> {code}
> * Also, please make access to the underlying links in RDFLinkModular public 
> in order to reduce the amount of re-wrapping needed when e.g. only only 
> wrapping the LinkSparqlQuery with custom query rewriting.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to