jochen      2005/04/29 02:55:27

  Modified:    src/jaxme/org/apache/ws/jaxme/generator/sg/impl
                        JAXBComplexContentTypeSG.java
  Log:
  If the unsupported type xs:anyType was used, then a confusing error message 
was emitted.
  
  Revision  Changes    Path
  1.9       +5 -1      
ws-jaxme/src/jaxme/org/apache/ws/jaxme/generator/sg/impl/JAXBComplexContentTypeSG.java
  
  Index: JAXBComplexContentTypeSG.java
  ===================================================================
  RCS file: 
/home/cvs/ws-jaxme/src/jaxme/org/apache/ws/jaxme/generator/sg/impl/JAXBComplexContentTypeSG.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- JAXBComplexContentTypeSG.java     24 Apr 2005 20:16:48 -0000      1.8
  +++ JAXBComplexContentTypeSG.java     29 Apr 2005 09:55:27 -0000      1.9
  @@ -29,6 +29,7 @@
   import org.apache.ws.jaxme.xs.XSGroup;
   import org.apache.ws.jaxme.xs.XSParticle;
   import org.apache.ws.jaxme.xs.XSType;
  +import org.apache.ws.jaxme.xs.types.XSAnyType;
   import org.xml.sax.Locator;
   import org.xml.sax.SAXException;
   import org.xml.sax.SAXParseException;
  @@ -73,7 +74,10 @@
       private final List stack = new ArrayList();
   
        protected JAXBComplexContentTypeSG(ComplexTypeSG pComplexTypeSG, XSType 
pType) throws SAXException {
  -        locator = pType.getLocator();
  +             if (pType == XSAnyType.getInstance()) {
  +                     throw new SAXException("The type xs:anyType is not 
supported.");
  +             }
  +             locator = pType.getLocator();
                if (pType.getComplexType().isEmpty()) {
                        groupSG = null;
                        isEmpty = true;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to