Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351732 - XSDHelperDefine - On 2nd define of XML Schema new complex types are defined for global elements
Summary: XSDHelperDefine - On 2nd define of XML Schema new complex types are defined f...
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-11 12:18 EDT by Blaise Doughan CLA
Modified: 2022-06-09 10:33 EDT (History)
1 user (show)

See Also:


Attachments
SDO - Fix (782 bytes, patch)
2011-07-11 12:19 EDT, Blaise Doughan CLA
no flags Details | Diff
SDO - Test Cases (6.76 KB, patch)
2011-07-11 13:41 EDT, Blaise Doughan CLA
no flags Details | Diff
SDO - Fix (801 bytes, patch)
2011-07-11 13:42 EDT, Blaise Doughan CLA
no flags Details | Diff

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