You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (Jira)" <ji...@apache.org> on 2022/03/10 17:25:00 UTC
[jira] [Resolved] (JENA-2303) Resource leak in RDFConnectionAdapter
[ https://issues.apache.org/jira/browse/JENA-2303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andy Seaborne resolved JENA-2303.
---------------------------------
Fix Version/s: Jena 4.5.0
Resolution: Fixed
> 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
> Fix For: Jena 4.5.0
>
>
> * 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)