Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353413 - Shared SDODataTypes shouldn't reference their subtypes
Summary: Shared SDODataTypes shouldn't reference their subtypes
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-29 10:03 EDT by Matt MacIvor CLA
Modified: 2022-06-09 10:20 EDT (History)
0 users

See Also:


Attachments
Proposed Fix and Updated Tests (3.05 KB, patch)
2011-07-29 10:11 EDT, Matt MacIvor CLA
no flags Details | Diff

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