Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 343756 - Specified namespace prefix not used
Summary: Specified namespace prefix not used
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-04-25 13:55 EDT by Blaise Doughan CLA
Modified: 2022-06-09 10:23 EDT (History)
1 user (show)

See Also:


Attachments
Code demonstrating the bug (2.21 KB, application/x-zip-compressed)
2011-04-25 13:58 EDT, Blaise Doughan CLA
no flags Details
Proposed Fix (1.06 KB, patch)
2011-05-03 16:14 EDT, Matt MacIvor CLA
no flags Details | Diff
moxy test case (10.69 KB, patch)
2011-05-04 11:10 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 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