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 "Hans (JIRA)" <ax...@ws.apache.org> on 2005/08/01 17:48:37 UTC

[jira] Created: (AXIS-2159) WSDL2Java generates incorrect code for Extension of SimpleType with List

WSDL2Java generates incorrect code for Extension of SimpleType with List 
-------------------------------------------------------------------------

         Key: AXIS-2159
         URL: http://issues.apache.org/jira/browse/AXIS-2159
     Project: Apache Axis
        Type: Bug
  Components: WSDL processing  
    Versions: current (nightly)    
 Environment: Linux, JDK 1.4.2_06
    Reporter: Hans


WSDL2Java generates incorrect code for the following xsd construct:

<simpleType name="ListOfInt">
  <list itemType="int"/>
</simpleType>

<complexType name="DerivationOfListOfInt">
  <simpleContent>
    <extension base="typens:ListOfInt"/>
  </simpleContent>
</complexType>

An incorrect constructor is generated:

public DerivationOfListOfInt(java.lang.String _value) {
    this._value = new int[](_value);
}


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


[jira] Commented: (AXIS-2159) WSDL2Java generates incorrect code for Extension of SimpleType with List

Posted by "Hans (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2159?page=comments#action_12319697 ] 

Hans commented on AXIS-2159:
----------------------------

I see this is already marked as blocker... The comment above was meant to be for another bug I posted...

> WSDL2Java generates incorrect code for Extension of SimpleType with List
> ------------------------------------------------------------------------
>
>          Key: AXIS-2159
>          URL: http://issues.apache.org/jira/browse/AXIS-2159
>      Project: Apache Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: current (nightly)
>  Environment: Linux, JDK 1.4.2_06
>     Reporter: Hans
>     Priority: Blocker
>  Attachments: derivationOfSimple.wsdl
>
> WSDL2Java generates incorrect code for the following xsd construct:
> <simpleType name="ListOfInt">
>   <list itemType="int"/>
> </simpleType>
> <complexType name="DerivationOfListOfInt">
>   <simpleContent>
>     <extension base="typens:ListOfInt"/>
>   </simpleContent>
> </complexType>
> An incorrect constructor is generated:
> public DerivationOfListOfInt(java.lang.String _value) {
>     this._value = new int[](_value);
> }

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


[jira] Updated: (AXIS-2159) WSDL2Java generates incorrect code for Extension of SimpleType with List

Posted by "Hans (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-2159?page=all ]

Hans updated AXIS-2159:
-----------------------

    Attachment: derivationOfSimple.wsdl

Attached WSDL with derivation of xsd:simpleType test scenarios (including derivation of xsd:list).

> WSDL2Java generates incorrect code for Extension of SimpleType with List
> ------------------------------------------------------------------------
>
>          Key: AXIS-2159
>          URL: http://issues.apache.org/jira/browse/AXIS-2159
>      Project: Apache Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: current (nightly)
>  Environment: Linux, JDK 1.4.2_06
>     Reporter: Hans
>  Attachments: derivationOfSimple.wsdl
>
> WSDL2Java generates incorrect code for the following xsd construct:
> <simpleType name="ListOfInt">
>   <list itemType="int"/>
> </simpleType>
> <complexType name="DerivationOfListOfInt">
>   <simpleContent>
>     <extension base="typens:ListOfInt"/>
>   </simpleContent>
> </complexType>
> An incorrect constructor is generated:
> public DerivationOfListOfInt(java.lang.String _value) {
>     this._value = new int[](_value);
> }

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


[jira] Updated: (AXIS-2159) WSDL2Java generates incorrect code for Extension of SimpleType with List

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-2159?page=all ]

Davanum Srinivas updated AXIS-2159:
-----------------------------------

    Priority: Critical  (was: Blocker)

> WSDL2Java generates incorrect code for Extension of SimpleType with List
> ------------------------------------------------------------------------
>
>          Key: AXIS-2159
>          URL: http://issues.apache.org/jira/browse/AXIS-2159
>      Project: Apache Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: current (nightly)
>  Environment: Linux, JDK 1.4.2_06
>     Reporter: Hans
>     Priority: Critical
>  Attachments: derivationOfSimple.wsdl
>
> WSDL2Java generates incorrect code for the following xsd construct:
> <simpleType name="ListOfInt">
>   <list itemType="int"/>
> </simpleType>
> <complexType name="DerivationOfListOfInt">
>   <simpleContent>
>     <extension base="typens:ListOfInt"/>
>   </simpleContent>
> </complexType>
> An incorrect constructor is generated:
> public DerivationOfListOfInt(java.lang.String _value) {
>     this._value = new int[](_value);
> }

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


[jira] Commented: (AXIS-2159) WSDL2Java generates incorrect code for Extension of SimpleType with List

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2159?page=comments#action_12319556 ] 

Davanum Srinivas commented on AXIS-2159:
----------------------------------------

Could you please attach the full wsdl?

thanks,
dims

> WSDL2Java generates incorrect code for Extension of SimpleType with List
> ------------------------------------------------------------------------
>
>          Key: AXIS-2159
>          URL: http://issues.apache.org/jira/browse/AXIS-2159
>      Project: Apache Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: current (nightly)
>  Environment: Linux, JDK 1.4.2_06
>     Reporter: Hans

>
> WSDL2Java generates incorrect code for the following xsd construct:
> <simpleType name="ListOfInt">
>   <list itemType="int"/>
> </simpleType>
> <complexType name="DerivationOfListOfInt">
>   <simpleContent>
>     <extension base="typens:ListOfInt"/>
>   </simpleContent>
> </complexType>
> An incorrect constructor is generated:
> public DerivationOfListOfInt(java.lang.String _value) {
>     this._value = new int[](_value);
> }

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


[jira] Commented: (AXIS-2159) WSDL2Java generates incorrect code for Extension of SimpleType with List

Posted by "Hans (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2159?page=comments#action_12319569 ] 

Hans commented on AXIS-2159:
----------------------------

In the nightly build Wsdl2Java generates the following class declaration:

public class DerivationOfListOfInt  extends int[]  implements java.io.Serializable {


In 1.2.1 the declaration was ok (class extends org.apache.axis.encoding.SimpleType) but
created an incorrect constructor with String parameter. In nightly build no String constructor is generated.

> WSDL2Java generates incorrect code for Extension of SimpleType with List
> ------------------------------------------------------------------------
>
>          Key: AXIS-2159
>          URL: http://issues.apache.org/jira/browse/AXIS-2159
>      Project: Apache Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: current (nightly)
>  Environment: Linux, JDK 1.4.2_06
>     Reporter: Hans
>  Attachments: derivationOfSimple.wsdl
>
> WSDL2Java generates incorrect code for the following xsd construct:
> <simpleType name="ListOfInt">
>   <list itemType="int"/>
> </simpleType>
> <complexType name="DerivationOfListOfInt">
>   <simpleContent>
>     <extension base="typens:ListOfInt"/>
>   </simpleContent>
> </complexType>
> An incorrect constructor is generated:
> public DerivationOfListOfInt(java.lang.String _value) {
>     this._value = new int[](_value);
> }

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


[jira] Commented: (AXIS-2159) WSDL2Java generates incorrect code for Extension of SimpleType with List

Posted by "Hans (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2159?page=comments#action_12319692 ] 

Hans commented on AXIS-2159:
----------------------------

It would be nice if this is fixed in 1.3 :o)
However I don't have time to look into it now...

> WSDL2Java generates incorrect code for Extension of SimpleType with List
> ------------------------------------------------------------------------
>
>          Key: AXIS-2159
>          URL: http://issues.apache.org/jira/browse/AXIS-2159
>      Project: Apache Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: current (nightly)
>  Environment: Linux, JDK 1.4.2_06
>     Reporter: Hans
>     Priority: Blocker
>  Attachments: derivationOfSimple.wsdl
>
> WSDL2Java generates incorrect code for the following xsd construct:
> <simpleType name="ListOfInt">
>   <list itemType="int"/>
> </simpleType>
> <complexType name="DerivationOfListOfInt">
>   <simpleContent>
>     <extension base="typens:ListOfInt"/>
>   </simpleContent>
> </complexType>
> An incorrect constructor is generated:
> public DerivationOfListOfInt(java.lang.String _value) {
>     this._value = new int[](_value);
> }

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


[jira] Updated: (AXIS-2159) WSDL2Java generates incorrect code for Extension of SimpleType with List

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-2159?page=all ]

Davanum Srinivas updated AXIS-2159:
-----------------------------------

    Priority: Blocker  (was: Major)

Blocker?

> WSDL2Java generates incorrect code for Extension of SimpleType with List
> ------------------------------------------------------------------------
>
>          Key: AXIS-2159
>          URL: http://issues.apache.org/jira/browse/AXIS-2159
>      Project: Apache Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: current (nightly)
>  Environment: Linux, JDK 1.4.2_06
>     Reporter: Hans
>     Priority: Blocker
>  Attachments: derivationOfSimple.wsdl
>
> WSDL2Java generates incorrect code for the following xsd construct:
> <simpleType name="ListOfInt">
>   <list itemType="int"/>
> </simpleType>
> <complexType name="DerivationOfListOfInt">
>   <simpleContent>
>     <extension base="typens:ListOfInt"/>
>   </simpleContent>
> </complexType>
> An incorrect constructor is generated:
> public DerivationOfListOfInt(java.lang.String _value) {
>     this._value = new int[](_value);
> }

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


[jira] Commented: (AXIS-2159) WSDL2Java generates incorrect code for Extension of SimpleType with List

Posted by "Hans (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2159?page=comments#action_12319696 ] 

Hans commented on AXIS-2159:
----------------------------

I ran the testcase against the latest build and its still failing.
I would greatly appreciate it if it this would be fixed for 1.3...
Is it possible to mark this one as a blocker?

> WSDL2Java generates incorrect code for Extension of SimpleType with List
> ------------------------------------------------------------------------
>
>          Key: AXIS-2159
>          URL: http://issues.apache.org/jira/browse/AXIS-2159
>      Project: Apache Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: current (nightly)
>  Environment: Linux, JDK 1.4.2_06
>     Reporter: Hans
>     Priority: Blocker
>  Attachments: derivationOfSimple.wsdl
>
> WSDL2Java generates incorrect code for the following xsd construct:
> <simpleType name="ListOfInt">
>   <list itemType="int"/>
> </simpleType>
> <complexType name="DerivationOfListOfInt">
>   <simpleContent>
>     <extension base="typens:ListOfInt"/>
>   </simpleContent>
> </complexType>
> An incorrect constructor is generated:
> public DerivationOfListOfInt(java.lang.String _value) {
>     this._value = new int[](_value);
> }

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