Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363739 - Performance - reduce the amount of namespace declarations being written
Summary: Performance - reduce the amount of namespace declarations being written
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: Denise Smith CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-14 14:26 EST by Denise Smith CLA
Modified: 2022-06-09 10:15 EDT (History)
0 users

See Also:


Attachments
Proposed changes (33.58 KB, patch)
2011-11-14 15:38 EST, Denise Smith CLA
no flags Details | Diff
Test case changes (25.53 KB, patch)
2011-11-14 15:39 EST, Denise Smith CLA
no flags Details | Diff
Additional change to XMLObjectBuilder (998 bytes, patch)
2011-11-18 13:10 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 2011-11-14 14:26:50 EST
Reduce the number of namespace declarations being rewritten in an XML document by calculating what we need where possible in advance. In JAXB namespaceresovlers on descriptors can have all referenced children`s (and grandchildren) namespaces added to their namespaceresolver to help with this.  

Additionally don`t necessarily  add an objects targetNamespace to it`s own namespaceresolver.  Don`t add xsi namespace to a namespaceresolver just because it`s nillable or has inheritance.  Instead modify OXM to add those namespaces declarations on the fly if needed.
Comment 1 Denise Smith CLA 2011-11-14 15:38:36 EST
Created attachment 206987 [details]
Proposed changes
Comment 2 Denise Smith CLA 2011-11-14 15:39:02 EST
Created attachment 206988 [details]
Test case changes
Comment 3 Denise Smith CLA 2011-11-18 13:10:46 EST
Created attachment 207241 [details]
Additional change to XMLObjectBuilder
Comment 4 Denise Smith CLA 2011-11-18 16:46:01 EST
Fixed in 2.3, Bug 364203 opened to track required changes in 2.4
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:07:49 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 6 Eclipse Webmaster CLA 2022-06-09 10:15:03 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink