Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-2303

Resource leak in RDFConnectionAdapter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Jena 4.5.0
    • Jena 4.5.0
    • ARQ
    • None

    Description

      • There is a resource leak in RDFConnectionAdapter:
        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));
            }
        
        }
        
      • 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.

      Attachments

        Issue Links

          Activity

            People

              andy Andy Seaborne
              Aklakan Claus Stadler
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: