Issue Details (XML | Word | Printable)

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

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

SingleStringQuery has a query accessing a field in a subclass

Created: 04/Jan/06 04:51 AM   Updated: 04/Jan/06 09:00 AM
Return to search
Component/s: tck2
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Resolution Date: 04/Jan/06 09:00 AM


 Description  « Hide
Bug JDO-270 was raised against JPOX for not detecting accesses to fields in subclasses, saying that it should raise an exception when it encounters such things. In which case can we please have the test SingleStringQuery fixed since it tries to access "salary" when using a candidate class of Person, which has no such "salary" (which is on FullTimeEmployee), or "projects" for that matter. Maybe change the candidate to FullTimeEmployee ?

 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:01 AM
Also Grouping.testPositive has access to "salary" for Employee.
Also VariablesAndFields.testPositive has access to "team" when using a candidate class of Person.

Craig Russell added a comment - 04/Jan/06 06:16 AM
Committed revision 365748.

This fixes SingleStringQuery. Other tests have not been changed.

Craig Russell added a comment - 04/Jan/06 09:00 AM
Committed revision 365775.

This fixes the VariablesAndFields and Grouping tests.