On 24/08/12 19:50, Jeremy Carroll wrote:
On 8/24/2012 10:59 AM, Stephen Allen wrote:
>execAsk(), execConstruct(), and execDescribe() do (or if they don't
>currently, they should) close the QueryExecution before they return.
>In this case you calling close() is redundant, but can't hurt.
>
>-Stephen

I think this is the most unobvious case from the documentation.
In my view, either it should be documented that close() is called by the
implementation of these methods (and then it should be called from
within a finally block), or the current documentation on close() should
strongly advise the use of a finally block and articulate that it is
necessary even in the surprising cases.

Jeremy


The documentation shows the query execution object being closed each time.

http://jena.apache.org/documentation/query/app_api.html

        Andy

Reply via email to