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

Bug 360860

Summary: JAXB not all classes are traversed/processed
Product: z_Archived Reporter: Denise Smith <denise.mahar>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipselink.oxm-inbox, matt.macivor
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Proposed changes and test
none
Proposed code changes
none
Proposed new test cases
none
Updated fix and tests none

Description Denise Smith CLA 2011-10-13 12:13:59 EDT
In the following cases classes may not get processed unless explicitly added to the list of classes given to the context.

<xs:element name="some-global-element" substitutionGroup="some-referenced-thing">
        <xs:complexType>
The some-global-element type may potentially be skipped

 @XmlElementRef(name = "someThing", namespace = "abc", type = JAXBElement.class)
    protected JAXBElement<? extends SomeThing> myTestThing;
The type SomeThing may potentially be skipped.
Comment 1 Denise Smith CLA 2011-10-13 16:02:51 EDT
Created attachment 205154 [details]
Proposed changes and test
Comment 2 Denise Smith CLA 2011-10-25 09:09:13 EDT
Created attachment 205911 [details]
Proposed code changes
Comment 3 Denise Smith CLA 2011-10-25 09:09:45 EDT
Created attachment 205912 [details]
Proposed new test cases
Comment 4 Denise Smith CLA 2011-10-25 12:13:06 EDT
Checked in to 2.3 trunk and 2.4 trunk.
Comment 5 Denise Smith CLA 2011-10-26 13:33:59 EDT
Fix check in to 2.3 and 2.4.  Related bugs opened for similar issues with DynamicJAXBContext 361993 and 361994
Comment 6 Matt MacIvor CLA 2011-11-14 13:10:05 EST
Issue still occurs when creating the context from ObjectFactory.class instead of Schema.class
Comment 7 Matt MacIvor CLA 2011-11-14 13:12:44 EST
Created attachment 206968 [details]
Updated fix and tests
Comment 8 Matt MacIvor CLA 2011-11-18 14:11:32 EST
Updated fix checked in to 2.3.2
Comment 9 Eclipse Webmaster CLA 2022-06-09 10:32:53 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink