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

Bug 334158

Summary: JAXB: Issues with @XmlType(name="") on reference class from different namespace
Product: z_Archived Reporter: David McCann <david.mccann>
Component: EclipselinkAssignee: David McCann <david.mccann>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed fix.
none
Supporting tests. none

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