db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Jefferson (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JDO-646) Query test case InvalidUseOfKeywords fails
Date Thu, 22 Oct 2009 12:52:00 GMT

     [ 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.


Mime
View raw message