You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2005/11/02 05:19:51 UTC

svn commit: r330189 - /xerces/java/trunk/src/org/apache/xerces/impl/xs/traversers/XSDComplexTypeTraverser.java

Author: mrglavas
Date: Tue Nov  1 20:19:47 2005
New Revision: 330189

URL: http://svn.apache.org/viewcvs?rev=330189&view=rev
Log:
The field in which we store annotations while building the complex type is
never cleared when we start a new type. This is only a problem when we
must traverse another complex type to complete the one we were traversing.
This occurs when we haven't yet processed the base type. The base type
was inheriting annotations from the sub type. Should be fixed now.

Modified:
    xerces/java/trunk/src/org/apache/xerces/impl/xs/traversers/XSDComplexTypeTraverser.java

Modified: xerces/java/trunk/src/org/apache/xerces/impl/xs/traversers/XSDComplexTypeTraverser.java
URL: http://svn.apache.org/viewcvs/xerces/java/trunk/src/org/apache/xerces/impl/xs/traversers/XSDComplexTypeTraverser.java?rev=330189&r1=330188&r2=330189&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/xs/traversers/XSDComplexTypeTraverser.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/xs/traversers/XSDComplexTypeTraverser.java Tue Nov  1 20:19:47 2005
@@ -197,6 +197,7 @@
         fFinal &= (XSConstants.DERIVATION_EXTENSION | XSConstants.DERIVATION_RESTRICTION);
         
         fIsAbstract = (abstractAtt != null && abstractAtt.booleanValue());
+        fAnnotations = null;
         
         Element child = null;
         



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