Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354295 - Error if namespace in an annotation is set to http://www.w3.org/XML/1998/namespace
Summary: Error if namespace in an annotation is set to http://www.w3.org/XML/1998/name...
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Denise Smith CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-09 15:27 EDT by Denise Smith CLA
Modified: 2022-06-09 10:09 EDT (History)
1 user (show)

See Also:


Attachments
Proposed changes and test (11.99 KB, patch)
2011-08-09 16:11 EDT, Denise Smith CLA
no flags Details | Diff
Updated patch (12.93 KB, patch)
2011-08-09 16:27 EDT, Denise Smith CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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