Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
JDO 3 (3.0)
-
None
Description
The query test case org.apache.jdo.tck.query.jdoql.keywords.InvalidUseOfKeywords (Method testNegative) fails after switching to the latest datanucleus version 2.0.0-m3-SNAPSHOT. The test case expects that the following query does not compile, because it uses the keyword range as part of a path expression:
SELECT INTO range.PersonResult FROM org.apache.jdo.tck.pc.company.Person
The query compiles fine with the latest datanucleus version.
testNegative(org.apache.jdo.tck.query.jdoql.keywords.InvalidUseOfKeywords)junit.framework.AssertionFailedError: Assertion A14.4-6 (InvalidUseOfKeywords) failed:
Query compilation must throw JDOUserException: SELECT INTO range.PersonResult FROM org.apache.jdo.tck.pc.company.Person
at org.apache.jdo.tck.JDO_Test.fail(JDO_Test.java:682)
at org.apache.jdo.tck.query.QueryTest.compile(QueryTest.java:1018)
at org.apache.jdo.tck.query.QueryTest.compile(QueryTest.java:981)
at org.apache.jdo.tck.query.QueryTest.compileSingleStringQuery(QueryTest.java:939)
at org.apache.jdo.tck.query.jdoql.keywords.InvalidUseOfKeywords.testNegative(InvalidUseOfKeywords.java:99)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:272)
at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:108)
at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:148)
at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:123)