mrglavas 2005/04/19 11:49:47
Modified: java/src/org/apache/xerces/impl/xs/traversers
XSDComplexTypeTraverser.java
Log:
Fixing JIRA Issue #1065:
http://issues.apache.org/jira/browse/XERCESJ-1065
There's boolean which tracks whether a complex type is abstract.
We were only setting it to true, so if a type is not abstract but
this field's value was already set to true during another
call of traverseComplexTypeDecl we were treating the type
as abstract. Should be fixed now.
Revision Changes Path
1.49 +2 -4
xml-xerces/java/src/org/apache/xerces/impl/xs/traversers/XSDComplexTypeTraverser.java
Index: XSDComplexTypeTraverser.java
===================================================================
RCS file:
/home/cvs/xml-xerces/java/src/org/apache/xerces/impl/xs/traversers/XSDComplexTypeTraverser.java,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -r1.48 -r1.49
--- XSDComplexTypeTraverser.java 22 Mar 2005 03:28:28 -0000 1.48
+++ XSDComplexTypeTraverser.java 19 Apr 2005 18:49:47 -0000 1.49
@@ -196,9 +196,7 @@
fBlock &= (XSConstants.DERIVATION_EXTENSION |
XSConstants.DERIVATION_RESTRICTION);
fFinal &= (XSConstants.DERIVATION_EXTENSION |
XSConstants.DERIVATION_RESTRICTION);
- if (abstractAtt != null && abstractAtt.booleanValue())
- fIsAbstract = true;
-
+ fIsAbstract = (abstractAtt != null && abstractAtt.booleanValue());
Element child = null;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]