Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 345335 - After processing transient superclasses the properties end up in the wrong order
Summary: After processing transient superclasses the properties end up in the wrong order
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-10 16:25 EDT by Denise Smith CLA
Modified: 2022-06-09 10:23 EDT (History)
1 user (show)

See Also:


Attachments
Proposed changes and test (3.53 KB, patch)
2011-05-11 10:59 EDT, Denise Smith CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Denise Smith CLA 2011-05-10 16:25:26 EDT
See test case org.eclipse.persistence.testing.jaxb.inheritance.JAXBInheritanceTestCases

Currently the complex type for e looks like
<xsd:complexType name="e-type">
      <xsd:complexContent>
         <xsd:extension base="b-type">
            <xsd:sequence>
               <xsd:element name="ddd" type="xsd:int"/>
               <xsd:element name="foo" type="xsd:int"/>
               <xsd:element name="ccc" type="xsd:int"/>
               <xsd:element name="eee" type="xsd:int"/>
            </xsd:sequence>
         </xsd:extension>
      </xsd:complexContent>
   </xsd:complexType>

But should be
<xsd:complexType name="e-type">
      <xsd:complexContent>
         <xsd:extension base="b-type">
            <xsd:sequence>
               <xsd:element name="ccc" type="xsd:int"/>
               <xsd:element name="ddd" type="xsd:int"/>
               <xsd:element name="foo" type="xsd:int"/>
               <xsd:element name="eee" type="xsd:int"/>
            </xsd:sequence>
         </xsd:extension>
      </xsd:complexContent>
   </xsd:complexType>
Comment 1 Denise Smith CLA 2011-05-11 10:59:41 EDT
Created attachment 195366 [details]
Proposed changes and test
Comment 2 Denise Smith CLA 2011-05-11 11:00:36 EDT
Fixed to add the superclass attributes in the right spot in the list of properties.
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:15:46 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:23:08 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink