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

Bug 354295

Summary: Error if namespace in an annotation is set to http://www.w3.org/XML/1998/namespace
Product: z_Archived Reporter: Denise Smith <denise.mahar>
Component: EclipselinkAssignee: Denise Smith <denise.mahar>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipselink.oxm-inbox
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Proposed changes and test
none
Updated patch none

Description Denise Smith CLA 2011-08-09 15:27:22 EDT
If an annotation has the namespace set to http://www.w3.org/XML/1998/namespace ie:

  @XmlAttribute(namespace = "http://www.w3.org/XML/1998/namespace")
    public String lang;

The following error will occur
javax.xml.transform.TransformerException: org.xml.sax.SAXParseException: The prefix "xml" cannot be bound to any namespace other than its usual namespace; neither can the namespace for "xml" be bound to any prefix other than "xml".
Comment 1 Denise Smith CLA 2011-08-09 16:11:14 EDT
Created attachment 201182 [details]
Proposed changes and test
Comment 2 Denise Smith CLA 2011-08-09 16:27:22 EDT
Created attachment 201185 [details]
Updated patch
Comment 3 Denise Smith CLA 2011-08-10 09:37:33 EDT
Added a new test case for this issue.  Modifications to XMLConstants, SchemaGenerator and MappingsGenerator.  Fixed in 2.3 and 2.4
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:09:46 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink