Issue Details (XML | Word | Printable)

Key: JDO-270
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Andy Jefferson
Reporter: Michael Bouschen
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JDO

JPOX must thrown JDOUserException for a query accessing a subclass field

Created: 03/Jan/06 08:42 PM   Updated: 04/Jan/06 05:32 AM
Return to search
Component/s: tck2
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Resolution Date: 04/Jan/06 05:32 AM


 Description  « Hide
The query test class ResultExpressions now includes two negative tests both accessing unknow fields. JPOX does not throw an exception for the second test query accessing a field declared in the subclass of the candidate class:
  SELECT salary FROM org.apache.jdo.tck.pc.company.Employee
The subclass FullTimeEmployee declares a field called salary.

    [java] Query compilation must throw JDOUserException: SELECT salary FROM org.apache.jdo.tck.pc.company.Employee
    [java] at org.apache.jdo.tck.JDO_Test.fail(JDO_Test.java:546)
    [java] at org.apache.jdo.tck.query.QueryTest.compile(QueryTest.java:917)
    [java] at org.apache.jdo.tck.query.QueryTest.compile(QueryTest.java:880)
    [java] at org.apache.jdo.tck.query.QueryTest.compileAPIQuery(QueryTest.java:793)
    [java] at org.apache.jdo.tck.query.result.ResultExpressions.testNegative(ResultExpressions.java:521)
    [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:204)
    [java] at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:120)
    [java] at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:95)

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 04/Jan/06 05:32 AM
Another one bites the dust. Fixed in JPOX builds dated 04/01/2006 or later