JPOX fails to use FetchPlan to load instances returned from Query
-----------------------------------------------------------------

         Key: JDO-337
         URL: http://issues.apache.org/jira/browse/JDO-337
     Project: JDO
        Type: Bug
  Components: tck20  
    Versions: JDO 2 rc1    
 Environment: JPOX
    Reporter: Craig Russell
     Fix For: JDO 2 final


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)


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to