Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 351610

Summary: Add "version" field to debug printing when an IdentityMap is printed
Product: z_Archived Reporter: David Minsky <david.minsky>
Component: EclipselinkAssignee: David Minsky <david.minsky>
Status: RESOLVED FIXED QA Contact: Project Inbox <eclipselink.foundation-inbox>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Proposed patch
none
Proposed patch (v2) none

Description David Minsky CLA 2011-07-08 17:24:00 EDT
Currently, when invoking session.getIdentityMapAccessor().printIdentityMaps(), the output prints (for each Descriptor) each object's id, identity hashcode, and the object itself (String representation of the object).

I propose that it would be useful and beneficial to debugging for each object's version (write lock) field to also be printed along with the existing information, if the ClassDescriptor is configured to use Optimistic Locking with version locking.

This would be an extension of the current debug printing code.
Comment 1 David Minsky CLA 2011-07-08 17:25:14 EDT
Created attachment 199365 [details]
Proposed patch
Comment 2 David Minsky CLA 2011-07-14 14:34:27 EDT
Created attachment 199692 [details]
Proposed patch (v2)
Comment 3 David Minsky CLA 2011-07-14 18:35:39 EDT
Fixed in trunk (2.4) at revision: 9734
2.3.1 commit pending
Comment 4 David Minsky CLA 2011-07-15 17:20:08 EDT
Checked into 2.3.1 at r9745
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:09:23 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink