db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an...@apache.org
Subject svn commit: r1846517 - /db/jdo/trunk/tck/src/main/java/org/apache/jdo/tck/query/jdoql/Cast.java
Date Tue, 13 Nov 2018 14:57:54 GMT
Author: andyj
Date: Tue Nov 13 14:57:54 2018
New Revision: 1846517

URL: http://svn.apache.org/viewvc?rev=1846517&view=rev
Log:
fix object being cast to be consistent with the single-string test

Modified:
    db/jdo/trunk/tck/src/main/java/org/apache/jdo/tck/query/jdoql/Cast.java

Modified: db/jdo/trunk/tck/src/main/java/org/apache/jdo/tck/query/jdoql/Cast.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck/src/main/java/org/apache/jdo/tck/query/jdoql/Cast.java?rev=1846517&r1=1846516&r2=1846517&view=diff
==============================================================================
--- db/jdo/trunk/tck/src/main/java/org/apache/jdo/tck/query/jdoql/Cast.java (original)
+++ db/jdo/trunk/tck/src/main/java/org/apache/jdo/tck/query/jdoql/Cast.java Tue Nov 13 14:57:54
2018
@@ -101,7 +101,7 @@ public class Cast extends QueryTest {
         QEmployee e = QEmployee.variable("e");
         // DataNucleus: java.lang.ClassCastException: org.datanucleus.api.jdo.query.PersistableExpressionImpl
         // cannot be cast to org.apache.jdo.tck.pc.company.QFullTimeEmployee
-        QFullTimeEmployee cast = (QFullTimeEmployee)cand.cast(FullTimeEmployee.class);
+        QFullTimeEmployee cast = (QFullTimeEmployee)e.cast(FullTimeEmployee.class);
         query.filter(cand.employees.contains(e).and(cast.salary.gt(15000.0)));
 
         QueryElementHolder holder = new QueryElementHolder(



Mime
View raw message