You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by an...@apache.org on 2001/01/29 06:46:59 UTC
cvs commit: xml-xerces/java/src/org/apache/xerces/parsers DOMParser.java SAXParser.java
andyc 01/01/28 21:46:59
Modified: java/src/org/apache/xerces/parsers DOMParser.java
SAXParser.java
Log:
Fix for deferred DOM breaking when identity constraints was
added. The last patch solved the NullPointerException but
broke the identity constraint support. This patch reactivates
that support and fixes the deferred DOM problem.
Revision Changes Path
1.34 +3 -5 xml-xerces/java/src/org/apache/xerces/parsers/DOMParser.java
Index: DOMParser.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/parsers/DOMParser.java,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- DOMParser.java 2001/01/26 19:25:21 1.33
+++ DOMParser.java 2001/01/29 05:46:55 1.34
@@ -109,7 +109,7 @@
* DOMParser provides a parser which produces a W3C DOM tree as its output
*
*
- * @version $Id: DOMParser.java,v 1.33 2001/01/26 19:25:21 lehors Exp $
+ * @version $Id: DOMParser.java,v 1.34 2001/01/29 05:46:55 andyc Exp $
*/
public class DOMParser
extends XMLParser
@@ -1096,10 +1096,8 @@
}
}
- // NOTE: This is now the responsibility of the caller
- // because other components need to know the
- // attributes before it gets released. -Ac
- //xmlAttrList.releaseAttrList(attrListIndex);
+ // release attributes
+ xmlAttrList.releaseAttrList(attrListIndex);
// copy schema grammar, if needed
if (!fSeenRootElement) {
1.21 +2 -5 xml-xerces/java/src/org/apache/xerces/parsers/SAXParser.java
Index: SAXParser.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/parsers/SAXParser.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- SAXParser.java 2001/01/25 07:18:36 1.20
+++ SAXParser.java 2001/01/29 05:46:56 1.21
@@ -88,7 +88,7 @@
* SAXParser provides a parser which implements the SAX1 and SAX2
* parser APIs.
*
- * @version $Id: SAXParser.java,v 1.20 2001/01/25 07:18:36 andyc Exp $
+ * @version $Id: SAXParser.java,v 1.21 2001/01/29 05:46:56 andyc Exp $
*/
public class SAXParser
extends XMLParser
@@ -1377,10 +1377,7 @@
}
// free attribute list
- // NOTE: This is now the responsibility of the caller
- // because other components need to know the
- // attributes before it gets released. -Ac
- //attrList.releaseAttrList(attrListIndex);
+ attrList.releaseAttrList(attrListIndex);
} // startElement(QName,XMLAttrList,int)