JDK-6475032 : Regression: declaring a a duplicate Namespace mapping to an exisitng prefix:URI throws an Exception
  • Type: Bug
  • Component: xml
  • Sub-Component: javax.xml.parsers
  • Affected Version: 5.0u8
  • Priority: P1
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2006-09-26
  • Updated: 2012-04-24
  • Resolved: 2007-01-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0u12 b01Fixed
Description
if a prefix:NamespaceURI mapping already exists, an attempt to re-declare the prefix:Namespace mapping with the same value throws an Exception.

a unit test is available @:

https://jaxp-sources.dev.java.net/source/browse/jaxp-sources/jaxp-ri/src/unit-test/bug6467808/Bug.java

the fix is avialble @:

https://jaxp-sources.dev.java.net/source/browse/jaxp-sources/src/com/sun/org/apache/xalan/internal/xsltc/trax/Attic/SAX2DOM.java?only_with_tag=jaxp-1_3-j2se-5_0-branch

Comments
EVALUATION the fix is available from the the JAXP project @ java.net. see CR description. also be sure to see CR 6467808 for more information.
2006-09-26