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

Bug 351732

Summary: XSDHelperDefine - On 2nd define of XML Schema new complex types are defined for global elements
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.sdo-inbox
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
SDO - Fix
none
SDO - Test Cases
none
SDO - Fix none

Description Blaise Doughan CLA 2011-07-11 12:18:42 EDT
If an XML schema is defined twice on an XSDHelper, no new types should be created.  Currently there is a bug that new types are being created for global elements.
Comment 1 Blaise Doughan CLA 2011-07-11 12:19:58 EDT
Created attachment 199428 [details]
SDO - Fix
Comment 2 Blaise Doughan CLA 2011-07-11 13:41:43 EDT
Created attachment 199433 [details]
SDO - Test Cases
Comment 3 Blaise Doughan CLA 2011-07-11 13:42:13 EDT
Created attachment 199434 [details]
SDO - Fix
Comment 4 Blaise Doughan CLA 2011-07-13 12:38:37 EDT
Fix checked into 2.1.4 at rev: 9717
Fix checked into 2.2.1 at rev: 9718
Fix checked into 2.3.1 at rev: 9719
Fix checked into trunk at rev: 9720

Code reviewed by:  Matt MacIvor

Fix Details:
When not returning all types (such as in a define) we will not process global elements that we have previously processed.
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:33:58 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink