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

Bug 366846

Summary: JAXBBinder overrides namespace declarations from original doc, and can create invalid output
Product: z_Archived Reporter: Matt MacIvor <matt.macivor>
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 XP   
Whiteboard:
Attachments:
Description Flags
Proposed Fix and Tests none

Description Matt MacIvor CLA 2011-12-15 12:44:08 EST
In the case that an XML Document unmarshalled through a binder contains prefixes/namespace uris that collide with EclipseLink's internal map of namespaces, some unusual behavior can occur in the resulting document after an update.

Whenever possible, EclipseLink should not override any existing namespace delcarations at a higher level than is required, and should try to use existing namespace prefixes when updating an existing dom.
Comment 1 Matt MacIvor CLA 2011-12-15 15:27:55 EST
Created attachment 208468 [details]
Proposed Fix and Tests
Comment 2 Matt MacIvor CLA 2012-01-03 15:39:46 EST
Attached patch checked in to SVN
Reviewed by Blaise Doughan
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:25:23 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink