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

Bug 365615

Summary: Lazy initialize prefixesForFragment Map on UnmarshalRecord
Product: z_Archived Reporter: Denise Smith <denise.mahar>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipselink.oxm-inbox
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
2.3 proposed patch
none
Trunk patch none

Description Denise Smith CLA 2011-12-05 10:24:56 EST
prefixesForFragment Map isn`t always used (ie XMLStreamReaderReader )but at the end of each startElement we clear the map which will iterate over the Entries even when it`s unused so we should lazy initialize it or only try to clear it when used.
Comment 1 Denise Smith CLA 2011-12-08 15:43:52 EST
Created attachment 208120 [details]
2.3 proposed patch
Comment 2 Denise Smith CLA 2011-12-08 15:44:09 EST
Created attachment 208121 [details]
Trunk patch
Comment 3 Denise Smith CLA 2011-12-09 13:34:39 EST
Checked in to trunk but should also be checked into 2.3
Comment 4 Denise Smith CLA 2011-12-14 09:40:20 EST
Fix also checked in to 2.3.3
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:33:08 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink