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

Bug 368718

Summary: ObejctFacory with XMLElementDecl that has an empty namespace causes invalid marshal
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    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
trunk proposed patch none

Description Denise Smith CLA 2012-01-16 10:18:09 EST
If the ObjectFactory has a declaration like below with an empty namespace then in the output XML after a marshal the XML contains xmlns:ns0="" and that should not be there.

 @XmlElementDecl(namespace = "", name = "doc")
 public JAXBElement<Object> createDoc(Object value) {
     return new JAXBElement<Object>(_Doc_QNAME, Object.class, null, value);
 }
Comment 1 Denise Smith CLA 2012-01-16 10:31:16 EST
Created attachment 209561 [details]
trunk proposed patch
Comment 2 Denise Smith CLA 2012-01-17 08:58:12 EST
Fix checked in to 2.3 and trunk.
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:20:18 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink