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 "Michael Hu (JIRA)" <ax...@ws.apache.org> on 2006/09/13 20:19:23 UTC

[jira] Commented: (AXIS-2545) wsdl2java mix up order of elements and arrays in super constructor call

    [ http://issues.apache.org/jira/browse/AXIS-2545?page=comments#action_12434502 ] 
            
Michael Hu commented on AXIS-2545:
----------------------------------

Our project has encountered this bug as well when attempting to upgrade from Axis 1.3 to Axis 1.4. The bug is not present in 1.3 so it appears to have been introduced in 1.4. We are unable to upgrade as a result. Will a fix be available in 1.5?

> wsdl2java mix up order of elements and arrays in super constructor call
> -----------------------------------------------------------------------
>
>                 Key: AXIS-2545
>                 URL: http://issues.apache.org/jira/browse/AXIS-2545
>             Project: Apache Axis
>          Issue Type: Bug
>          Components: Basic Architecture
>    Affects Versions: 1.4
>         Environment: Windows 2000 professional.
> java version "1.4.2_05"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
> Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)
>            Reporter: Siegfried Sauter-Fischer
>
> I tried to create dataobjects using the following WSDL
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions
>  targetNamespace="http://axis-test.t-mobile.de/test/order"
>  xmlns:order="http://axis-test.t-mobile.de/test/order"
>  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
>  <wsdl:types>
>   <schema xmlns="http://www.w3.org/2001/XMLSchema">
>    <complexType name="SubBean">
>     <complexContent>
>      <extension base="order:SuperBean">
>       <sequence/>
>      </extension>
>     </complexContent>
>    </complexType>
>    <complexType name="SuperBean">
>     <sequence>
>      <element name="superContent" maxOccurs="1" minOccurs="1" type="xsd:string"/>
>     </sequence>
>     <attribute name="superAttribute" type="xsd:int"/>
>    </complexType>
>   </schema>
>  </wsdl:types>
> </wsdl:definitions>
> As a result I got a compiler error.
>     [javac] Compiling 2 source files to Y:\wfa_source\pcm\src\WebserviceGateway\build_ProdVersion
>     [javac] Y:\wfa_source\pcm\src\WebserviceGateway\generated_ProdVersion\de\t_mobile\axis_test\test\order\SubBean.java:17: cannot resolve symbol
>     [javac] symbol  : constructor SuperBean (int,java.lang.String)
>     [javac] location: class de.t_mobile.axis_test.test.order.SuperBean
>     [javac]         super(
>     [javac]         ^
>     [javac] 1 error
> The reason of this is a mix up in the order of the arguments in super class.
> The constructor of SuperBean has the signature
> public SuperBean( java.lang.String superContent,  int superAttribute)
> but in the constructor of SubBean you find the call
>         super( superAttribute,  superContent);

-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org