db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Bouschen (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (JDO-321) Add test queries accessing a public static final field declared in a company model class
Date Sat, 04 Mar 2006 20:09:41 GMT
     [ http://issues.apache.org/jira/browse/JDO-321?page=all ]

Michael Bouschen reassigned JDO-321:
------------------------------------

    Assign To: Erik Bengtson  (was: Michael Bouschen)

Checked in the patch adding new query tests accessing public static fields (see revision 383192).

Assigning the issue to Erik, because JPOX runs into a problem for a JDOQL query accessing
a public static field w/o qualification:
  SELECT FROM org.apache.jdo.tck.pc.company.Department WHERE employees.size() > RECOMMENDED_NO_OF_EMPS
Here is the failure:
    [java] 1) testPositive(org.apache.jdo.tck.query.jdoql.IdentifiersEqualFieldNames)org.jpox.store.expression.ScalarExpression$IllegalOperationException:
Cannot perform operation ">" on ContainerSizeExpression "(SELECT COUNT(*) FROM datastoreidentity0.PERSONS
THIS_EMPLOYEES WHERE THIS_EMPLOYEES.DEPARTMENT = THIS.DATASTORE_IDENTITY)" and UnboundVariable
    [java]      at org.jpox.store.expression.ScalarExpression.gt(ScalarExpression.java:518)
    [java]      at org.jpox.store.expression.NumericExpression.gt(NumericExpression.java:175)
    [java]      at org.jpox.store.expression.ContainerSizeExpression.gt(ContainerSizeExpression.java:62)
    [java]      at org.jpox.store.query.JDOQLQuery$Compiler.compileRelationalExpression(JDOQLQuery.java:1571)
    [java]      at org.jpox.store.query.JDOQLQuery$Compiler.compileEqualityExpression(JDOQLQuery.java:1525)
    [java]      at org.jpox.store.query.JDOQLQuery$Compiler.compileAndExpression(JDOQLQuery.java:1513)
    [java]      at org.jpox.store.query.JDOQLQuery$Compiler.compileExclusiveOrExpression(JDOQLQuery.java:1501)
    [java]      at org.jpox.store.query.JDOQLQuery$Compiler.compileInclusiveOrExpression(JDOQLQuery.java:1489)
    [java]      at org.jpox.store.query.JDOQLQuery$Compiler.compileConditionalAndExpression(JDOQLQuery.java:1477)
    [java]      at org.jpox.store.query.JDOQLQuery$Compiler.compileConditionalOrExpression(JDOQLQuery.java:1459)
    [java]      at org.jpox.store.query.JDOQLQuery$Compiler.compileExpression(JDOQLQuery.java:1436)
    [java]      at org.jpox.store.query.JDOQLQuery$Compiler.compileExpressionFromString(JDOQLQuery.java:1397)
    [java]      at org.jpox.store.query.JDOQLQuery$Compiler.compileFilter(JDOQLQuery.java:1236)
    [java]      at org.jpox.store.query.JDOQLQuery$Compiler.performCompile(JDOQLQuery.java:846)
    [java]      at org.jpox.store.query.JDOQLQuery$Compiler.executionCompile(JDOQLQuery.java:819)
    [java]      at org.jpox.store.query.JDOQLQuery.performExecute(JDOQLQuery.java:447)
    [java]      at org.jpox.store.query.Query.executeWithMap(Query.java:1113)
    [java]      at org.jpox.store.query.Query.executeWithArray(Query.java:1086)
    [java]      at org.jpox.store.query.Query.execute(Query.java:1009)
    [java]      at org.apache.jdo.tck.query.QueryTest.execute(QueryTest.java:1192)
    [java]      at org.apache.jdo.tck.query.QueryTest.execute(QueryTest.java:1070)
    [java]      at org.apache.jdo.tck.query.QueryTest.executeAPIQuery(QueryTest.java:1007)
    [java]      at org.apache.jdo.tck.query.QueryTest.executeAPIQuery(QueryTest.java:987)
    [java]      at org.apache.jdo.tck.query.jdoql.IdentifiersEqualFieldNames.testPositive(IdentifiersEqualFieldNames.java:146)
    [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:205)
    [java]      at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:120)
    [java]      at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:95)

> Add test queries accessing a public static final field declared in a company model class
> ----------------------------------------------------------------------------------------
>
>          Key: JDO-321
>          URL: http://issues.apache.org/jira/browse/JDO-321
>      Project: JDO
>         Type: Test
>   Components: tck20
>     Versions: JDO 2 rc1
>     Reporter: Michael Bouschen
>     Assignee: Erik Bengtson
>     Priority: Minor
>      Fix For: JDO 2 final
>  Attachments: JDO-321.patch
>
> I propose to add new test queries to query test class query.jdoql.IdentifiersEqualFieldNames
accessing a public static final field declared in a company model class, e.g add the following
constant to class Department:
>   public static final int RECOMMENDED_NO_OF_EMPS = 2

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