ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1335168 - /webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/util/stax/AbstractXMLStreamWriter.java
Date Mon, 07 May 2012 18:17:10 GMT
Author: veithen
Date: Mon May  7 18:17:10 2012
New Revision: 1335168

URL: http://svn.apache.org/viewvc?rev=1335168&view=rev
Log:
AXIOM-421: Fixed a bug in AbstractXMLStreamWriter#writeStartElement(String, String) and AbstractXMLStreamWriter#writeEmptyElement(String,
String) that causes a permutation of the local name and the namespace URI. AbstractXMLStreamWriter
is used by the StAX dialects for BEA's reference implementation and IBM's XLXP 1. Other StAX
implementations are not affected.

A regression test for this issue will be provided by AXIOM-420.

Modified:
    webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/util/stax/AbstractXMLStreamWriter.java

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/util/stax/AbstractXMLStreamWriter.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/util/stax/AbstractXMLStreamWriter.java?rev=1335168&r1=1335167&r2=1335168&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/util/stax/AbstractXMLStreamWriter.java
(original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/util/stax/AbstractXMLStreamWriter.java
Mon May  7 18:17:10 2012
@@ -116,7 +116,7 @@ public abstract class AbstractXMLStreamW
     }
 
     public final void writeStartElement(String namespaceURI, String localName) throws XMLStreamException
{
-        doWriteStartElement(internalGetPrefix(namespaceURI), namespaceURI, localName);
+        doWriteStartElement(internalGetPrefix(namespaceURI), localName, namespaceURI);
         namespaceContext.startScope();
         inEmptyElement = false;
     }
@@ -148,7 +148,7 @@ public abstract class AbstractXMLStreamW
 
     public final void writeEmptyElement(String namespaceURI, String localName)
             throws XMLStreamException {
-        doWriteEmptyElement(internalGetPrefix(namespaceURI), namespaceURI, localName);
+        doWriteEmptyElement(internalGetPrefix(namespaceURI), localName, namespaceURI);
         inEmptyElement = true;
     }
 



Mime
View raw message