Issue Details (XML | Word | Printable)

Key: JDO-118
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Michael Watzek
Reporter: Michael Watzek
Votes: 0
Watchers: 0
Operations

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

Copy/paste bug in class PCPointSingleFieldDate

Created: 11/Aug/05 09:40 PM   Updated: 11/Aug/05 10:46 PM
Return to search
Component/s: tck2
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Resolution Date: 11/Aug/05 10:46 PM


 Description  « Hide
There is a copy/paste bug in class PCPointSingleFieldDate:

     public boolean equalsPKField(SingleFieldIdentity singleFieldIdentity) {
- return this.id.equals(((StringIdentity)singleFieldIdentity).getKey());
+ return this.id.equals(((ObjectIdentity)singleFieldIdentity).getKey());
     }

This bug has not shown up, yet. Once, JDO-100 is fixed TCK would throw a ClassCastException due to the cast to StringIdentity in the statement above.


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #232190 Fri Aug 12 03:02:43 UTC 2005 mcaisse JDO-118 Contributed by Michael Watzek
Files Changed
MODIFY /incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/singlefieldidentity/PCPointSingleFieldDate.java