xerces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mrgla...@apache.org
Subject svn commit: r431288 - /xerces/java/branches/stax-dev/src/org/apache/xerces/stax/DOMXMLStreamReaderImpl.java
Date Mon, 14 Aug 2006 03:57:19 GMT
Author: mrglavas
Date: Sun Aug 13 20:57:18 2006
New Revision: 431288

URL: http://svn.apache.org/viewvc?rev=431288&view=rev
Log:
Fixing the state check in getPrefix(). The SAX version had a similar bug.

Modified:
    xerces/java/branches/stax-dev/src/org/apache/xerces/stax/DOMXMLStreamReaderImpl.java

Modified: xerces/java/branches/stax-dev/src/org/apache/xerces/stax/DOMXMLStreamReaderImpl.java
URL: http://svn.apache.org/viewvc/xerces/java/branches/stax-dev/src/org/apache/xerces/stax/DOMXMLStreamReaderImpl.java?rev=431288&r1=431287&r2=431288&view=diff
==============================================================================
--- xerces/java/branches/stax-dev/src/org/apache/xerces/stax/DOMXMLStreamReaderImpl.java (original)
+++ xerces/java/branches/stax-dev/src/org/apache/xerces/stax/DOMXMLStreamReaderImpl.java Sun
Aug 13 20:57:18 2006
@@ -1149,7 +1149,7 @@
      * @throws IllegalStateException if this is not a START_ELEMENT or END_ELEMENT
      */
     public String getPrefix(){
-        if (curType == XMLStreamConstants.START_ELEMENT || curType == XMLStreamConstants.START_ELEMENT)
{
+        if (curType == XMLStreamConstants.START_ELEMENT || curType == XMLStreamConstants.END_ELEMENT)
{
             String nodeName = curNode.getNodeName();
             String prefix = null;
             int index = nodeName.indexOf(":");



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org


Mime
View raw message