You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlbeans.apache.org by kk...@apache.org on 2004/11/30 20:33:06 UTC

cvs commit: xml-xmlbeans/v1/src/typeimpl/org/apache/xmlbeans/impl/schema StscComplexTypeResolver.java

kkrouse     2004/11/30 11:33:06

  Modified:    v1/src/typeimpl/org/apache/xmlbeans/impl/schema
                        StscComplexTypeResolver.java
  Log:
  Fix IllegalStateException from building an error
  
  Revision  Changes    Path
  1.5       +1 -1      xml-xmlbeans/v1/src/typeimpl/org/apache/xmlbeans/impl/schema/StscComplexTypeResolver.java
  
  Index: StscComplexTypeResolver.java
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v1/src/typeimpl/org/apache/xmlbeans/impl/schema/StscComplexTypeResolver.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- StscComplexTypeResolver.java	22 Jun 2004 21:23:04 -0000	1.4
  +++ StscComplexTypeResolver.java	30 Nov 2004 19:33:06 -0000	1.5
  @@ -890,7 +890,7 @@
                                   if (sAttr.getUse() != SchemaLocalAttribute.REQUIRED)
                                   {
                                       if (baseAttr.getUse() == SchemaLocalAttribute.REQUIRED)
  -                                        state.error("A restriction cannot modify an attribute that is required in the base type to be prohibited or optional.", XmlErrorContext.DUPLICATE_ATTRIBUTE_NAME, xsdattr.xgetUse());
  +                                        state.error("A restriction cannot modify an attribute that is required in the base type to be prohibited or optional.", XmlErrorContext.DUPLICATE_ATTRIBUTE_NAME, xsdattr);
                                       
                                       if (sAttr.getUse() == SchemaLocalAttribute.PROHIBITED)
                                           result.removeProhibitedAttribute(sAttr.getName());
  
  
  

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