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

Bug 328650

Summary: buildReferencesPKList creates incorrect array for MapKey relationship
Product: z_Archived Reporter: Gordon Yorke <gordon.yorke>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: christopher.delahunt, eclipselink.foundation-inbox
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Simple Patch and Test Case
none
patch changes missed from the first file
none
Patch combines previous patches into one file and adds a small change none

Description Gordon Yorke CLA 2010-10-25 15:48:33 EDT
buildReferencesPKList creates an array of size collection.size()*2 when processing a MapKey relationship.  That array size is needed for MapKeyColumns but not for MapKey where the Key is derived from the value.
Comment 1 Gordon Yorke CLA 2010-10-27 11:50:37 EDT
Created attachment 181850 [details]
Simple Patch and Test Case

Simply update to change the size of the Object[] created by the mapping when preparing the PK list of the map.  In the case of the MapKey the size should equal the size of the map.
Comment 2 Gordon Yorke CLA 2010-10-27 13:21:00 EDT
Patch Checked in
Comment 3 Gordon Yorke CLA 2010-10-27 13:54:22 EDT
Created attachment 181856 [details]
patch changes missed from the first file

Part of the change was missing from that first patch file.
Comment 4 Gordon Yorke CLA 2010-10-27 16:20:24 EDT
Created attachment 181879 [details]
Patch combines previous patches into one file and adds a small change
Comment 5 Chris Delahunt CLA 2010-11-02 15:05:26 EDT
Patch also checked into EclipseLink 2.1.2 revision 8452
Comment 6 Eclipse Webmaster CLA 2022-06-09 10:14:10 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 7 Eclipse Webmaster CLA 2022-06-09 10:34:47 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink