db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Watzek (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JDO-225) ResultClassRequirements.testConstructor has missign import
Date Mon, 28 Nov 2005 15:35:38 GMT
     [ http://issues.apache.org/jira/browse/JDO-225?page=all ]

Michael Watzek updated JDO-225:
-------------------------------

    Attachment: JDO-225.patch

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)


> ResultClassRequirements.testConstructor has missign import
> ----------------------------------------------------------
>
>          Key: JDO-225
>          URL: http://issues.apache.org/jira/browse/JDO-225
>      Project: JDO
>         Type: Bug
>   Components: tck20
>     Reporter: Andy Jefferson
>     Assignee: Michael Watzek
>  Attachments: JDO-225.patch
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message