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

Bug 343756

Summary: Specified namespace prefix not used
Product: z_Archived Reporter: Blaise Doughan <blaise.doughan>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: matt.macivor
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Code demonstrating the bug
none
Proposed Fix
none
moxy test case none

Description Blaise Doughan CLA 2011-04-25 13:55:38 EDT
Given the following package annotation the "me" prefix should be used for the "http://myns" namespace.

@XmlSchema(
    namespace = "http://myns",
    elementFormDefault = XmlNsForm.QUALIFIED,
    attributeFormDefault = XmlNsForm.UNQUALIFIED,
    xmlns = {
        @XmlNs(prefix = "me", namespaceURI = "http://myns")
    }
)
package example;

import javax.xml.bind.annotation.*;
Comment 1 Blaise Doughan CLA 2011-04-25 13:58:44 EDT
Created attachment 194010 [details]
Code demonstrating the bug
Comment 2 Matt MacIvor CLA 2011-05-03 16:14:42 EDT
Created attachment 194640 [details]
Proposed Fix
Comment 3 Matt MacIvor CLA 2011-05-04 11:10:02 EDT
Created attachment 194724 [details]
moxy test case
Comment 4 Matt MacIvor CLA 2011-05-04 13:37:43 EDT
Attached fix and test case submitted to SVN
Reviewed by Blaise Doughan
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:16:40 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 6 Eclipse Webmaster CLA 2022-06-09 10:23:27 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink