Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368718 - ObejctFacory with XMLElementDecl that has an empty namespace causes invalid marshal
Summary: ObejctFacory with XMLElementDecl that has an empty namespace causes invalid m...
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: 2012-01-16 10:18 EST by Denise Smith CLA
Modified: 2022-06-09 10:20 EDT (History)
0 users

See Also:


Attachments
trunk proposed patch (9.47 KB, patch)
2012-01-16 10:31 EST, Denise Smith 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 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