Issue Details (XML | Word | Printable)

Key: JDO-321
Type: Test Test
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Erik Bengtson
Reporter: Michael Bouschen
Votes: 0
Watchers: 0
Operations

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

JPOX throws exception for query with public static final field used without qualifying class name prefix

Created: 28/Feb/06 07:23 AM   Updated: 21/Mar/06 06:13 AM
Return to search
Component/s: tck2
Affects Version/s: JDO 2 rc1
Fix Version/s: JDO 2 final

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works JDO-321.patch 2006-03-03 06:19 AM Michael Bouschen 3 kB

Resolution Date: 21/Mar/06 06:13 AM


 Description  « Hide
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


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Michael Bouschen made changes - 03/Mar/06 06:19 AM
Field Original Value New Value
Attachment JDO-321.patch [ 12323642 ]
Michael Bouschen made changes - 05/Mar/06 05:07 AM
Assignee Michael Bouschen [ mbo ] Erik Bengtson [ ebengtso ]
Craig Russell made changes - 15/Mar/06 06:46 AM
Summary Add test queries accessing a public static final field declared in a company model class JPOX throws exception for query with public static final field used without qualifying class name prefix
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
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
Craig Russell made changes - 21/Mar/06 06:13 AM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]