axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Banck, Arent-Jan" <ajba...@informatica.com>
Subject RE: cvs commit: ws-axis/java/src/org/apache/axis/wsdl/toJava JavaBeanWriter.java
Date Tue, 15 Jun 2004 15:52:27 GMT
Is there a Jira case for this where I can add comments?
Build of classes generated with wsdl2java stoppped working for me with
latest code from CVS, I assume related to this checkin.
Seems the parameters of the constructor have incorrect types.

WSDL:
<complexType name="IASNumericFormat">
<sequence>
  <element name="currencySymbol" nillable="true" type="xsd:string" /> 
  <element name="decimalSymbol" nillable="true" type="xsd:string" /> 
  <element name="decimals" nillable="true" type="xsd:int" /> 
  <element name="groupingSymbol" nillable="true" type="xsd:string" /> 
  <element name="negativeFormat" nillable="true"
type="tns13:IASNegativeFormat" /> 
  <element name="prefixCurrencySymbol" nillable="true"
type="xsd:boolean" /> 
  <element name="scale" nillable="true" type="tns13:IASNumericScale" /> 
  <element name="type" nillable="true" type="tns13:IASNumericFormatType"
/> 
</sequence>
</complexType>


public class IASNumericFormat  implements java.io.Serializable {
    private java.lang.String currencySymbol;
    private java.lang.String decimalSymbol;
    private java.lang.Integer decimals;
    private java.lang.String groupingSymbol;
    private
com.informatica.ias.api4.services.common.soapclient.IASNegativeFormat
negativeFormat;
    private java.lang.Boolean prefixCurrencySymbol;
    private
com.informatica.ias.api4.services.common.soapclient.IASNumericScale
scale;
    private
com.informatica.ias.api4.services.common.soapclient.IASNumericFormatType
type;

    public IASNumericFormat() {
    }

    public IASNumericFormat(
           java.lang.String currencySymbol,
           java.lang.String decimalSymbol,
           int decimals,
           java.lang.String groupingSymbol,
 
com.informatica.ias.api4.services.common.soapclient.IASNegativeFormat
negativeFormat,
           boolean prefixCurrencySymbol,
 
com.informatica.ias.api4.services.common.soapclient.IASNumericScale
scale,
 
com.informatica.ias.api4.services.common.soapclient.IASNumericFormatType
type) {



Build error:

    [javac]
C:\build\autobahn_nl-stripped\sdk\api4\tmp\wsdl2Java\com\informatica\ias
\api4\services\common\soapclient\IAS
NumericFormat.java:34: incompatible types
    [javac] found   : int
    [javac] required: java.lang.Integer
    [javac]         this.decimals = decimals;
    [javac]                         ^
    [javac]
C:\build\autobahn_nl-stripped\sdk\api4\tmp\wsdl2Java\com\informatica\ias
\api4\services\common\soapclient\IAS
NumericFormat.java:37: incompatible types
    [javac] found   : boolean
    [javac] required: java.lang.Boolean
    [javac]         this.prefixCurrencySymbol = prefixCurrencySymbol;
    [javac]                                     ^

-----Original Message-----
From: Tom Jordahl [mailto:tomj@macromedia.com] 
Sent: Tuesday, June 15, 2004 3:33 PM
To: 'axis-dev@ws.apache.org'
Subject: RE: cvs commit: ws-axis/java/src/org/apache/axis/wsdl/toJava
JavaBeanWriter.java



This seems pretty scary....

Has the full constructor code been thoroughly tested?

--
Tom Jordahl
Macromedia Server Development

-----Original Message-----
From: dims@apache.org [mailto:dims@apache.org] 
Sent: Tuesday, June 15, 2004 5:51 AM
To: ws-axis-cvs@apache.org
Subject: cvs commit: ws-axis/java/src/org/apache/axis/wsdl/toJava
JavaBeanWriter.java

dims        2004/06/15 02:51:14

  Modified:    java/src/org/apache/axis/wsdl/toJava JavaBeanWriter.java
  Log:
  Possible Fix for TCK failure - Generate for example
NonNullString(String) constructor in addition to the empty constructor
  
  Revision  Changes    Path
  1.62      +1 -1
ws-axis/java/src/org/apache/axis/wsdl/toJava/JavaBeanWriter.java
  
  Index: JavaBeanWriter.java
  ===================================================================
  RCS file:
/home/cvs/ws-axis/java/src/org/apache/axis/wsdl/toJava/JavaBeanWriter.ja
va,v
  retrieving revision 1.61
  retrieving revision 1.62
  diff -u -r1.61 -r1.62
  --- JavaBeanWriter.java	30 Mar 2004 11:36:02 -0000	1.61
  +++ JavaBeanWriter.java	15 Jun 2004 09:51:14 -0000	1.62
  @@ -73,7 +73,7 @@
       protected boolean enableDefaultConstructor = true;
   
       /** Field enableFullConstructor */
  -    protected boolean enableFullConstructor = false;
  +    protected boolean enableFullConstructor = true;
   
       /** Field enableSimpleConstructors */
       protected boolean enableSimpleConstructors = false;
  
  
  

Mime
View raw message