Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
JDO 2 rc1
-
None
-
JPOX
Description
When executing a query with a non-default FetchPlan, fields should be loaded. JPOX does not use the FetchPlan when executing queries.
[java] 1) testQuery(org.apache.jdo.tck.api.persistencemanager.fetchplan.FetchPlanQuery)junit.framework.AssertionFailedError:
[java] Assertion 12.7.1 (FetchPlanQuery) failed: after query.execute()
[java] Upper Left was null.
[java] The fetch plan includes PCRect.upperLeft and this field should have been loaded.
[java] Assertion 12.7.1 (FetchPlanQuery) failed: after query.execute()
[java] Lower Right was null.
[java] The fetch plan includes PCRect.lowerRight and this field should have been loaded.
[java]
[java] at org.apache.jdo.tck.JDO_Test.failOnError(JDO_Test.java:1035)
[java] at org.apache.jdo.tck.api.persistencemanager.fetchplan.FetchPlanQuery.testQuery(FetchPlanQuery.java:66)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:232)
[java] at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:105)
[java] at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:143)
[java] at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:118)