You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlbeans.apache.org by pc...@apache.org on 2004/02/18 22:15:23 UTC

cvs commit: xml-xmlbeans/v2/src/binding/org/apache/xmlbeans/impl/binding/compile Schema2Java.java

pcal        2004/02/18 13:15:23

  Modified:    v2/src/binding/org/apache/xmlbeans/impl/binding/compile
                        Schema2Java.java
  Log:
  fix small bug in schema2java which may be responsible for some of the test NPEs
  
  Revision  Changes    Path
  1.14      +1 -3      xml-xmlbeans/v2/src/binding/org/apache/xmlbeans/impl/binding/compile/Schema2Java.java
  
  Index: Schema2Java.java
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v2/src/binding/org/apache/xmlbeans/impl/binding/compile/Schema2Java.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- Schema2Java.java	12 Feb 2004 20:06:07 -0000	1.13
  +++ Schema2Java.java	18 Feb 2004 21:15:23 -0000	1.14
  @@ -337,9 +337,7 @@
             logVerbose("processing element "+scratch.getXmlName());
             SchemaType contentType = scratch.getSchemaType().getProperties()[0].getType();
             logVerbose("content type is "+contentType.getName());
  -          if (contentType.isPrimitiveType() /*||
  -                  //FIXME why is this not a primitive? gross hack to make things work for now
  -                  contentType.getName().toString().equals("{http://www.w3.org/2001/XMLSchema}int")*/) {
  +          if (contentType.isSimpleType()) {
               //REVIEW this is a quick bug fix for the case where an element
               //is of a primitive type.  I'm not completely sure it is the right
               //thing to do.  pcal
  
  
  

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