You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ax...@ws.apache.org on 2004/10/08 21:57:51 UTC

[jira] Commented: (AXIS-1396) compile error on constructor created with wsdl2java

The following comment has been added to this issue:

     Author: Nathan Kontny
    Created: Fri, 8 Oct 2004 12:56 PM
       Body:
This still seems broken in Axis1.2RC1
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1396?page=comments#action_53854

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1396

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1396
    Summary: compile error on constructor created with wsdl2java
       Type: Bug

     Status: Closed
   Priority: Critical
 Resolution: FIXED

    Project: Axis
 Components: 
             WSDL processing
   Fix Fors:
             current (nightly)
   Versions:
             current (nightly)

   Assignee: Davanum Srinivas
   Reporter: AJ Banck

    Created: Tue, 15 Jun 2004 9:04 AM
    Updated: Fri, 8 Oct 2004 12:56 PM

Description:
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>


Generated:

/**
 * IASNumericFormat.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis 1.2beta Jun 15, 2004 (03:31:55 CEST) WSDL2Java emitter.
 */

package soapclient;

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 IASNegativeFormat negativeFormat;
    private java.lang.Boolean prefixCurrencySymbol;
    private IASNumericScale scale;
    private IASNumericFormatType type;

    public IASNumericFormat() {
    }

    public IASNumericFormat(
           java.lang.String currencySymbol,
           java.lang.String decimalSymbol,
           int decimals,
           java.lang.String groupingSymbol,
           IASNegativeFormat negativeFormat,
           boolean prefixCurrencySymbol,
           IASNumericScale scale, IASNumericFormatType type) {
        this.currencySymbol = currencySymbol;
        this.decimalSymbol = decimalSymbol;
        this.decimals = decimals;
        this.groupingSymbol = groupingSymbol;
        this.negativeFormat = negativeFormat;
        this.prefixCurrencySymbol = prefixCurrencySymbol;
        this.scale = scale;
        this.type = type;
    }




Error:
    [javac] IASNumericFormat.java:34: incompatible types
    [javac] found   : int
    [javac] required: java.lang.Integer
    [javac]         this.decimals = decimals;
    [javac]                         ^
    [javac] IASNumericFormat.java:37: incompatible types
    [javac] found   : boolean
    [javac] required: java.lang.Boolean
    [javac]         this.prefixCurrencySymbol = prefixCurrencySymbol;
    [javac]                                     ^


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira