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 2009/10/21 23:13:10 UTC
[jira] Created: (JDO-646) Query test case InvalidUseOfKeywords
fails
Query test case InvalidUseOfKeywords fails
-------------------------------------------
Key: JDO-646
URL: https://issues.apache.org/jira/browse/JDO-646
Project: JDO
Issue Type: Bug
Components: tck2
Affects Versions: JDO 2 maintenance release 3
Reporter: Michael Bouschen
Assignee: Andy Jefferson
Fix For: JDO 2 maintenance release 3
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)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (JDO-646) Query test case InvalidUseOfKeywords
fails
Posted by "Andy Jefferson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JDO-646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andy Jefferson resolved JDO-646.
--------------------------------
Resolution: Fixed
If insisting on raising issues against work-in-progress code things will be broken from time to time (2.0.0-m2 passes the TCK). Works for me with SVN trunk
> Query test case InvalidUseOfKeywords fails
> -------------------------------------------
>
> Key: JDO-646
> URL: https://issues.apache.org/jira/browse/JDO-646
> Project: JDO
> Issue Type: Bug
> Components: tck2
> Affects Versions: JDO 2 maintenance release 3
> Reporter: Michael Bouschen
> Assignee: Andy Jefferson
> Fix For: JDO 2 maintenance release 3
>
>
> 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)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.