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

Bug 364158

Summary: Performance Improvement - Only create SAXParserFactory when SAX is used when Unmarshalling
Product: z_Archived Reporter: Blaise Doughan <blaise.doughan>
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 XP   
Whiteboard:
Attachments:
Description Flags
Core - Fix none

Description Blaise Doughan CLA 2011-11-18 09:38:08 EST
Currently a SAXParserFactory is created per Unmarshaller even when a SAX parser is not used during the unmarshal operation.
Comment 1 Blaise Doughan CLA 2011-11-18 09:41:40 EST
Created attachment 207218 [details]
Core - Fix
Comment 2 Blaise Doughan CLA 2011-11-18 11:16:16 EST
Fix checked into 2.3.2 at rev:  10423

Code reviewed by:  Denise Smith

Fix Details:
A SAXParserFactory is now only created when required.  

NOTE
Starting with EclipseLink 2.4.0 there is only a single instance of SAXParserFactory that is not lazily initialized.
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:23:03 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink