Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360860 - JAXB not all classes are traversed/processed
Summary: JAXB not all classes are traversed/processed
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-10-13 12:13 EDT by Denise Smith CLA
Modified: 2022-06-09 10:32 EDT (History)
2 users (show)

See Also:


Attachments
Proposed changes and test (16.88 KB, patch)
2011-10-13 16:02 EDT, Denise Smith CLA
no flags Details | Diff
Proposed code changes (10.32 KB, patch)
2011-10-25 09:09 EDT, Denise Smith CLA
no flags Details | Diff
Proposed new test cases (277.03 KB, patch)
2011-10-25 09:09 EDT, Denise Smith CLA
no flags Details | Diff
Updated fix and tests (7.34 KB, patch)
2011-11-14 13:12 EST, Matt MacIvor 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-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