You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by "Michael Bouschen (JIRA)" <ji...@apache.org> on 2006/01/03 12:43:00 UTC
[jira] Created: (JDO-270) JPOX must thrown JDOUserException for a query accessing a subclass field
JPOX must thrown JDOUserException for a query accessing a subclass field
------------------------------------------------------------------------
Key: JDO-270
URL: http://issues.apache.org/jira/browse/JDO-270
Project: JDO
Type: Bug
Components: tck20
Reporter: Michael Bouschen
Assigned to: Andy Jefferson
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)
--
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
[jira] Resolved: (JDO-270) JPOX must thrown JDOUserException for a query accessing a subclass field
Posted by "Andy Jefferson (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JDO-270?page=all ]
Andy Jefferson resolved JDO-270:
--------------------------------
Resolution: Fixed
Another one bites the dust. Fixed in JPOX builds dated 04/01/2006 or later
> JPOX must thrown JDOUserException for a query accessing a subclass field
> ------------------------------------------------------------------------
>
> Key: JDO-270
> URL: http://issues.apache.org/jira/browse/JDO-270
> Project: JDO
> Type: Bug
> Components: tck20
> Reporter: Michael Bouschen
> Assignee: Andy Jefferson
>
> 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)
--
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