openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fayw...@apache.org
Subject svn commit: r800851 - /openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/CriteriaQueryImpl.java
Date Tue, 04 Aug 2009 15:40:03 GMT
Author: faywang
Date: Tue Aug  4 15:40:03 2009
New Revision: 800851

URL: http://svn.apache.org/viewvc?rev=800851&view=rev
Log:
OPENJPA-1180: fix ArrayIndexOutOfBound problem

Modified:
    openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/CriteriaQueryImpl.java

Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/CriteriaQueryImpl.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/CriteriaQueryImpl.java?rev=800851&r1=800850&r2=800851&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/CriteriaQueryImpl.java
(original)
+++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/CriteriaQueryImpl.java
Tue Aug  4 15:40:03 2009
@@ -197,7 +197,7 @@
         if (_params == null)
             _params = new HashSet<ParameterExpression<?>>();
         if (_params.add(p)) {
-            p.setIndex(_params.size());
+            p.setIndex(_params.size()-1);
         }
     }
     



Mime
View raw message