| Summary: | schema generated with an invalid substitutionGroup | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Karen Butzke <karenfbutzke> | ||||||
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | blaise.doughan, matt.macivor | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
Created attachment 213305 [details]
propsed fix and tests
Attached patch checked into trunk and 2.3 The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |
Created attachment 206731 [details] example schema I generated classes from the attached schema and then generated a schema from those classes and ended up with an invalid schema. the generated schema contains: <xsd:element name="bar" substitutionGroup="foo"> <xsd:complexType> <xsd:attribute name="baz" type="xsd:boolean"/> </xsd:complexType> </xsd:element> instead of: <xsd:element name="bar" substitutionGroup="foo"> <xsd:complexType> <xsd:complexContent> <xsd:extension base="foo"> <xsd:attribute name="baz" type="xsd:boolean"/> </xsd:extension> </xsd:complexContent> </xsd:complexType> </xsd:element>