Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 343733 - Share namespace declarations (when possible) when model spans packages
Summary: Share namespace declarations (when possible) when model spans packages
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: Matt MacIvor CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-25 10:11 EDT by Blaise Doughan CLA
Modified: 2022-06-09 10:06 EDT (History)
2 users (show)

See Also:


Attachments
Code demonstrating the bug (2.22 KB, application/x-zip-compressed)
2011-04-25 10:15 EDT, Blaise Doughan CLA
no flags Details
MOXy - Test Cases (22.73 KB, patch)
2011-04-28 11:07 EDT, Blaise Doughan CLA
no flags Details | Diff
proposed fix and test cases (62.59 KB, patch)
2011-04-28 13:59 EDT, 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 Blaise Doughan CLA 2011-04-25 10:11:31 EDT
A JAXBContext can span multiple packages.  If the same namespace is used in multiple packages then the prefix used for that namespace should be shared:
Comment 1 Blaise Doughan CLA 2011-04-25 10:15:47 EDT
Created attachment 193989 [details]
Code demonstrating the bug
Comment 2 Ryan Kimber CLA 2011-04-25 11:01:11 EDT
Hi there.

I'm running into this bug in a system that's slated to go to production in the next two weeks. 

Is there any way this fix could make it into a patch set for Eclipselink MOXy 2.2?
Comment 3 Blaise Doughan CLA 2011-04-28 11:07:00 EDT
Created attachment 194278 [details]
MOXy - Test Cases
Comment 4 Matt MacIvor CLA 2011-04-28 13:59:19 EDT
Created attachment 194292 [details]
proposed fix and test cases
Comment 5 Matt MacIvor CLA 2011-05-02 12:52:20 EDT
Attached patch checked in to SVN
Fixed in 2.1 and Trunk streams.

Reviewed by Blaise Doughan
Comment 6 Eclipse Webmaster CLA 2022-06-09 10:06:03 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink