From: <mrp...@us...> - 2011-06-09 15:56:03
|
Revision: 4656 http://bigdata.svn.sourceforge.net/bigdata/?rev=4656&view=rev Author: mrpersonick Date: 2011-06-09 15:55:56 +0000 (Thu, 09 Jun 2011) Log Message: ----------- fixed a bug where a Collection of constraints was immutable but needed to be mutable Modified Paths: -------------- branches/QUADS_QUERY_BRANCH/bigdata-sails/src/java/com/bigdata/rdf/sail/Rule2BOpUtility.java Modified: branches/QUADS_QUERY_BRANCH/bigdata-sails/src/java/com/bigdata/rdf/sail/Rule2BOpUtility.java =================================================================== --- branches/QUADS_QUERY_BRANCH/bigdata-sails/src/java/com/bigdata/rdf/sail/Rule2BOpUtility.java 2011-06-09 15:15:11 UTC (rev 4655) +++ branches/QUADS_QUERY_BRANCH/bigdata-sails/src/java/com/bigdata/rdf/sail/Rule2BOpUtility.java 2011-06-09 15:55:56 UTC (rev 4656) @@ -696,7 +696,11 @@ // IPredicate.Annotations.CONSTRAINTS, constraints // .toArray(new IConstraint[constraints.size()])); - final Iterator<IConstraint> it = constraints.iterator(); + // create a mutable version + final Collection<IConstraint> tmp = new LinkedList<IConstraint>(); + tmp.addAll(constraints); + + final Iterator<IConstraint> it = tmp.iterator(); while (it.hasNext()) { @@ -717,7 +721,7 @@ // add constraints to the join for that predicate. anns.add(new NV( PipelineJoin.Annotations.CONSTRAINTS, - constraints.toArray(new IConstraint[constraints.size()]))); + tmp.toArray(new IConstraint[tmp.size()]))); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |