Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366846 - JAXBBinder overrides namespace declarations from original doc, and can create invalid output
Summary: JAXBBinder overrides namespace declarations from original doc, and can create...
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: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-15 12:44 EST by Matt MacIvor CLA
Modified: 2022-06-09 10:25 EDT (History)
0 users

See Also:


Attachments
Proposed Fix and Tests (14.46 KB, patch)
2011-12-15 15:27 EST, Matt MacIvor CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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