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
Repository Revision Date User Message
ASF #383192 Sat Mar 04 20:00:06 UTC 2006 mbo JDO-321: Add test queries accessing a public static final field declared in a company model class
Files Changed
MODIFY /db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/query/jdoql/IdentifiersEqualFieldNames.java
MODIFY /db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/pc/company/Department.java