You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Mark Diekhans <ma...@lutris.com> on 2000/12/07 10:40:03 UTC

Patch to fix infinite recursion in DocumentTypeImpl

The enclosed patch fixes an infinite recursion in 
DocumentTypeImpl.setReadOnly().

Index: src/org/apache/xerces/dom/DocumentTypeImpl.java
===================================================================
RCS file: /u/cvs/Projects/EnhydraOrg/Enhydra/modules/Xerces/src/org/apache/xerces/dom/DocumentTypeImpl.java,v
retrieving revision 1.1.1.3
retrieving revision 1.3.2.1
diff -c -r1.1.1.3 -r1.3.2.1
*** src/org/apache/xerces/dom/DocumentTypeImpl.java	2000/10/07 00:20:52	1.1.1.3
--- src/org/apache/xerces/dom/DocumentTypeImpl.java	2000/11/04 04:47:09	1.3.2.1
***************
*** 316,322 ****
          if (needsSyncChildren()) {
              synchronizeChildren();
              }
!         setReadOnly(readOnly, deep);
  
          // set read-only property
          elements.setReadOnly(readOnly, true);
--- 316,322 ----
          if (needsSyncChildren()) {
              synchronizeChildren();
              }
!         super.setReadOnly(readOnly, deep);
  
          // set read-only property
          elements.setReadOnly(readOnly, true);

Re: Patch to fix infinite recursion in DocumentTypeImpl

Posted by Arnaud Le Hors <le...@us.ibm.com>.
I committed your patch. Thanks Mark!
-- 
Arnaud  Le Hors - IBM Cupertino, XML Technology Group