Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 365615 - Lazy initialize prefixesForFragment Map on UnmarshalRecord
Summary: Lazy initialize prefixesForFragment Map on UnmarshalRecord
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-05 10:24 EST by Denise Smith CLA
Modified: 2022-06-09 10:33 EDT (History)
1 user (show)

See Also:


Attachments
2.3 proposed patch (1.72 KB, patch)
2011-12-08 15:43 EST, Denise Smith CLA
no flags Details | Diff
Trunk patch (1.71 KB, patch)
2011-12-08 15:44 EST, Denise Smith CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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