Issue Details (XML | Word | Printable)

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

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

JPOX does not support instanceof operator

Created: 07/Oct/05 12:41 AM   Updated: 05/Nov/05 03:13 AM
Return to search
Component/s: tck2
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Resolution Date: 05/Nov/05 03:13 AM


 Description  « Hide
JPOX does not support instanceof operator. This bug may be reproduced applying patch JDO-158. The following JDO query fails throwing an Exception:

SELECT FROM org.apache.jdo.tck.pc.company.Employee WHERE mentor instanceof org.apache.jdo.tck.pc.company.PartTimeEmployee.

org.jpox.store.query.JDOQLQuery$Compiler$ExpressionSyntaxException: The JDOQL query contains an invalid expression at character 8 in "mentor instanceof org.apache.jdo.tck.pc.company.PartTimeEmployee"
at org.jpox.store.query.JDOQLQuery$Compiler.compileQueryStatement(JDOQLQuery.java:892)
at org.jpox.store.query.JDOQLQuery.compile(JDOQLQuery.java:566)
at org.jpox.store.query.JDOQLQuery.performExecute(JDOQLQuery.java:636)
at org.jpox.store.query.Query.executeWithMap(Query.java:891)
at org.jpox.store.query.Query.executeWithArray(Query.java:871)
at org.jpox.store.query.Query.execute(Query.java:803)
at org.apache.jdo.tck.query.QueryTest.execute(QueryTest.java:639)
at org.apache.jdo.tck.query.QueryTest.executeAPIQuery(QueryTest.java:559)
at org.apache.jdo.tck.query.QueryTest.executeAPIQuery(QueryTest.java:535)
at org.apache.jdo.tck.query.jdoql.operators.Instanceof.testPositive(Instanceof.java:83)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at junit.framework.TestCase.runTest(TestCase.java:154)
at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:204)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at junit.textui.TestRunner.doRun(TestRunner.java:116)
at junit.textui.TestRunner.doRun(TestRunner.java:109)
at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:120)
at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:95)


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Michael Watzek added a comment - 17/Oct/05 05:44 PM
Component set to tck20.

Michael Watzek made changes - 17/Oct/05 05:44 PM
Field Original Value New Value
Component/s tck20 [ 11652 ]
AJSoft made changes - 04/Nov/05 02:35 PM
Assignee Erik Bengtson [ ebengtso ] Andy Jefferson [ andy ]
Andy Jefferson added a comment - 05/Nov/05 03:13 AM
Implemented in JPOX CVS. Test passes with builds dated 05/11/2005 or later

Andy Jefferson made changes - 05/Nov/05 03:13 AM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]