Uploaded image for project: 'JDO'
  1. JDO
  2. JDO-337

JPOX fails to use FetchPlan to load instances returned from Query

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • JDO 2 rc1
    • JDO 2 final (2.0)
    • tck
    • 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)

      Attachments

        Activity

          People

            ebengtso Erik Bengtson
            clr Craig L Russell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: