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

Bug 343733

Summary: Share namespace declarations (when possible) when model spans packages
Product: z_Archived Reporter: Blaise Doughan <blaise.doughan>
Component: EclipselinkAssignee: Matt MacIvor <matt.macivor>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipselink.oxm-inbox, ryan.kimber
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Code demonstrating the bug
none
MOXy - Test Cases
none
proposed fix and test cases none

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