Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334158 - JAXB: Issues with @XmlType(name="") on reference class from different namespace
Summary: JAXB: Issues with @XmlType(name="") on reference class from different namespace
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: David McCann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-12 14:18 EST by David McCann CLA
Modified: 2022-06-09 10:07 EDT (History)
0 users

See Also:


Attachments
Proposed fix. (1.54 KB, patch)
2011-01-13 12:05 EST, David McCann CLA
no flags Details | Diff
Supporting tests. (10.97 KB, patch)
2011-01-13 12:06 EST, David McCann CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David McCann CLA 2011-01-12 14:18:52 EST
We will get a null pointer in SchemaGenerator when we attempt to add an import for a class tagged with @XmlType(name="").  Since an @XmlType annotation with name="" results in an anonymous complex type being generated, we should not be attempting to generate an import.
Comment 1 David McCann CLA 2011-01-13 12:05:50 EST
Created attachment 186751 [details]
Proposed fix.
Comment 2 David McCann CLA 2011-01-13 12:06:02 EST
Created attachment 186752 [details]
Supporting tests.
Comment 3 David McCann CLA 2011-01-13 12:38:22 EST
Reviewed by:  blaise.doughan@oracle.com
Tests:  all unit tests pass as expected; jaxb/xmltype/XmlTypeNameTestCases
Revision: 8824
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:07:37 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink