Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6551616

Bug in SAX2StAXEventWriter.java:367-377.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 6
    • xml
    • 1.4
    • x86
    • windows_xp
    • Verified

        FULL PRODUCT VERSION :


        A DESCRIPTION OF THE PROBLEM :
          Bug in SAX2StAXEventWriter.java, version:
         * $Id: SAX2StAXEventWriter.java,v 1.3 2005/11/03 17:53:11 jeffsuttor Exp $
         * @(#)SAX2StAXEventWriter.java 1.7 06/01/27


        REPRODUCIBILITY :
        This bug can be reproduced always.

        CUSTOMER SUBMITTED WORKAROUND :
        SAX2StAXEventWriter.java, lines 367-377:

                        if (!nsMap.containsKey(attrPrefix)) {

                            Namespace ns = createNamespace(attrPrefix, attrValue);
                            if (nsMap == null) {

                                nsMap = new HashMap();

                            }
                            nsMap.put(attrPrefix, ns);

                        }

        should be read as:

                        if (!nsMap.containsKey(attrLocal)) {

                            Namespace ns = createNamespace(attrLocal, attrValue);
                            if (nsMap == null) {

                                nsMap = new HashMap();

                            }
                            nsMap.put(attrLocal, ns);

                        }

        (attrPrefix should be replaced with attrLocal).

              nwalshsunw Norman Walsh (Inactive)
              ndcosta Nelson Dcosta (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: