Author: knoaman
Date: Mon Mar 14 14:18:31 2011
New Revision: 1081388
URL: http://svn.apache.org/viewvc?rev=1081388&view=rev
Log:
Fix a potential infinite loop
Modified:
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java
Modified:
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java
URL:
http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java?rev=1081388&r1=1081387&r2=1081388&view=diff
==============================================================================
---
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java
(original)
+++
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java
Mon Mar 14 14:18:31 2011
@@ -1461,6 +1461,11 @@ public class XSDHandler {
XSDocumentInfo currSchemaDoc =
(XSDocumentInfo)schemasToProcess.pop();
final Element currDoc = currSchemaDoc.fSchemaElement;
+
+ if(DOMUtil.isHidden(currDoc, fHiddenNodes)) {
+ // must have processed this already!
+ continue;
+ }
// Check that we have a 'defaultAttributes' and that we have not
already processed it
if (currSchemaDoc.fDefaultAttributes != null &&
currSchemaDoc.fDefaultAGroup == null) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]