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

Bug 353413

Summary: Shared SDODataTypes shouldn't reference their subtypes
Product: z_Archived Reporter: Matt MacIvor <matt.macivor>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed Fix and Updated Tests none

Description Matt MacIvor CLA 2011-07-29 10:03:08 EDT
There are a number of SDODataType objects that are shared across helper contexts. Currently, any schema that defines a subtype of one of the built in types will get added as a subtype. This reference from the static, shared instance of SDODataType will indirectly cause the HelperContext instance that defines the subtype to be unavailable for garbage collection, leading to a memory leak.
Comment 1 Matt MacIvor CLA 2011-07-29 10:11:41 EDT
Created attachment 200594 [details]
Proposed Fix and Updated Tests
Comment 2 Matt MacIvor CLA 2011-08-02 15:41:29 EDT
Attached fix checked into 2.1, 2.2, 2.3 and Trunk streams
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:20:34 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink