axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/wsdl/toJava JavaBeanHelperWriter.java
Date Sat, 20 Aug 2005 12:05:26 GMT
dims        2005/08/20 05:05:26

  Modified:    java/src/org/apache/axis/wsdl/toJava
                        JavaBeanHelperWriter.java
  Log:
  Fix for AXIS-2138 - Regression with base64Binary and simpleType elements
  
  Revision  Changes    Path
  1.54      +5 -2      ws-axis/java/src/org/apache/axis/wsdl/toJava/JavaBeanHelperWriter.java
  
  Index: JavaBeanHelperWriter.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/wsdl/toJava/JavaBeanHelperWriter.java,v
  retrieving revision 1.53
  retrieving revision 1.54
  diff -u -r1.53 -r1.54
  --- JavaBeanHelperWriter.java	1 Aug 2005 18:23:29 -0000	1.53
  +++ JavaBeanHelperWriter.java	20 Aug 2005 12:05:25 -0000	1.54
  @@ -343,8 +343,11 @@
                           // use the refType's QName for the metadata (which can be anonymous
type.)
                           // see the schema of test/wsdl/axis2098
                           elemType = elemType.getRefType();
  -                    }                    
  -                    else {
  +                    } else if (elemType.isSimpleType()
  +                            && elemType.getRefType() != null) {
  +                        // see wsdl in AXIS-2138
  +                        elemType = elemType.getRefType();
  +                    } else {
                           // Otherwise, use the first non-Collection type we
                           // encounter up the ref chain.
                           while (elemType instanceof CollectionTE) {
  
  
  

Mime
View raw message