Issue Details (XML | Word | Printable)

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

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

ResultClassRequirements.testConstructor has missign import

Created: 27/Nov/05 03:48 AM   Updated: 29/Nov/05 07:56 PM
Return to search
Component/s: tck2
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works JDO-225.patch 2005-11-29 12:34 AM Michael Watzek 0.6 kB

Resolution Date: 29/Nov/05 07:56 PM


 Description  « Hide
The test ResultClassRequirements.testConstructor has a query
SELECT new LongString(personid, lastname) FROM org.apache.jdo.tck.pc.company.FullTimeEmployee

This is missing an "import" of LongString - the JDO impl cannot guess that it is stored under "org.apache.jdo.tck.query.result.classes"

The same may apply to other queries under that test.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Michael Watzek added a comment - 29/Nov/05 12:34 AM
The attached file fixes this issue. However, the test case still fails throwing the following exception:

    [java] 2) testConstructor(org.apache.jdo.tck.query.result.ResultClassRequirements)javax.jdo.JDOUserException: Use of "new" in JDOQL queries must be followed by a valid class name, yet LongString is not found. Please check the imports for this query.
    [java] at org.jpox.store.query.JDOQLQuery$Compiler.compileIdentifier(JDOQLQuery.java:1645)
    [java] at org.jpox.store.query.JDOQLQuery$Compiler.compilePrimary(JDOQLQuery.java:1383)
    [java] at org.jpox.store.query.JDOQLQuery$Compiler.compileUnaryExpressionNotPlusMinus(JDOQLQuery.java:1331)
    [java] at org.jpox.store.query.JDOQLQuery$Compiler.compileUnaryExpression(JDOQLQuery.java:1312)
    [java] at org.jpox.store.query.JDOQLQuery$Compiler.compileMultiplicativeExpression(JDOQLQuery.java:1265)
    [java] at org.jpox.store.query.JDOQLQuery$Compiler.compileAdditiveExpression(JDOQLQuery.java:1242)
    [java] at org.jpox.store.query.JDOQLQuery$Compiler.compileRelationalExpression(JDOQLQuery.java:1202)
    [java] at org.jpox.store.query.JDOQLQuery$Compiler.compileEqualityExpression(JDOQLQuery.java:1179)
    [java] at org.jpox.store.query.JDOQLQuery$Compiler.compileAndExpression(JDOQLQuery.java:1167)
    [java] at org.jpox.store.query.JDOQLQuery$Compiler.compileExclusiveOrExpression(JDOQLQuery.java:1155)
    [java] at org.jpox.store.query.JDOQLQuery$Compiler.compileInclusiveOrExpression(JDOQLQuery.java:1143)
    [java] at org.jpox.store.query.JDOQLQuery$Compiler.compileConditionalAndExpression(JDOQLQuery.java:1131)
    [java] at org.jpox.store.query.JDOQLQuery$Compiler.compileConditionalOrExpression(JDOQLQuery.java:1113)
    [java] at org.jpox.store.query.JDOQLQuery$Compiler.compileExpression(JDOQLQuery.java:1090)
    [java] at org.jpox.store.query.JDOQLQuery$Compiler.compileExpressionFromString(JDOQLQuery.java:1051)
    [java] at org.jpox.store.query.JDOQLQuery$Compiler.compileExpressionsFromString(JDOQLQuery.java:1076)
    [java] at org.jpox.store.query.JDOQLQuery$Compiler.compileResult(JDOQLQuery.java:808)
    [java] at org.jpox.store.query.JDOQLQuery$Compiler.performCompile(JDOQLQuery.java:681)
    [java] at org.jpox.store.query.JDOQLQuery$Compiler.executionCompile(JDOQLQuery.java:669)
    [java] at org.jpox.store.query.JDOQLQuery.performExecute(JDOQLQuery.java:386)
    [java] at org.jpox.store.query.Query.executeWithMap(Query.java:966)
    [java] at org.jpox.store.query.Query.executeWithArray(Query.java:939)
    [java] at org.jpox.store.query.Query.execute(Query.java:862)
    [java] at org.apache.jdo.tck.query.QueryTest.execute(QueryTest.java:1141)
    [java] at org.apache.jdo.tck.query.QueryTest.execute(QueryTest.java:1027)
    [java] at org.apache.jdo.tck.query.QueryTest.executeAPIQuery(QueryTest.java:926)
    [java] at org.apache.jdo.tck.query.QueryTest.executeAPIQuery(QueryTest.java:906)
    [java] at org.apache.jdo.tck.query.result.ResultClassRequirements.executeQuery(ResultClassRequirements.java:457)
    [java] at org.apache.jdo.tck.query.result.ResultClassRequirements.testConstructor(ResultClassRequirements.java:431)
    [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)

Michael Watzek made changes - 29/Nov/05 12:34 AM
Field Original Value New Value
Attachment JDO-225.patch [ 12321006 ]
Michael Watzek added a comment - 29/Nov/05 07:56 PM
The issue has been fixed by changes check in related to JDO-224.

Michael Watzek made changes - 29/Nov/05 07:56 PM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]