You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Claude Warren (JIRA)" <ji...@apache.org> on 2016/02/14 19:06:18 UTC

[jira] [Resolved] (JENA-1143) QueryBuilder .clone() method leaks data

     [ https://issues.apache.org/jira/browse/JENA-1143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claude Warren resolved JENA-1143.
---------------------------------
    Resolution: Resolved

Several of the tests can not use Query.equals because they are testing part of the query builder.  For instance the Where clause handler implementation that only generates the "WHERE ..." portion of the query.  The test does not know if it is a SELECT, ASK or CONSTRUCT query.

Where possible the Query.equals method has been used.

> QueryBuilder .clone() method leaks data
> ---------------------------------------
>
>                 Key: JENA-1143
>                 URL: https://issues.apache.org/jira/browse/JENA-1143
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: QueryBuilder
>    Affects Versions: Jena 3.0.0
>            Reporter: Claude Warren
>            Assignee: Claude Warren
>            Priority: Minor
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> The query returned in the QueryBuilder.clone() result is not separate and distinct from the original (pre clone()) version.  The result is that changes to the cloned query are reflected in the original.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)