db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig Russell (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JDO-321) JPOX throws exception for query with public static final field used without qualifying class name prefix
Date Tue, 14 Mar 2006 22:46:59 GMT
     [ http://issues.apache.org/jira/browse/JDO-321?page=all ]

Craig Russell updated JDO-321:
------------------------------

        Summary: JPOX throws exception for query with public static final field used without
qualifying class name prefix  (was: Add test queries accessing a public static final field
declared in a company model class)
    Description: 
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 query works if the class name is used to qualify the static field name, e.g. Department.RECOMMENDED_NO_OF_EMPS


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



> JPOX throws exception for query with public static final field used without qualifying
class name prefix
> --------------------------------------------------------------------------------------------------------
>
>          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 query works if the class name is used to qualify the static field name, e.g. Department.RECOMMENDED_NO_OF_EMPS

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