axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject [jira] Closed: (AXIS-858) WSDL2Java generates uncompilable code for simpleTypes redefining a complexType
Date Sun, 11 Apr 2004 15:18:43 GMT
Message:

   The following issue has been closed.

   Resolver: Davanum Srinivas
       Date: Sun, 11 Apr 2004 8:16 AM

Closing as per Olivier's comment.
---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-858

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-858
    Summary: WSDL2Java generates uncompilable code for simpleTypes redefining a complexType
       Type: Bug

     Status: Closed
 Resolution: FIXED

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

   Assignee: 
   Reporter: Olivier Gauwin

    Created: Fri, 2 May 2003 8:22 AM
    Updated: Sun, 11 Apr 2004 8:16 AM
Environment: Operating System: All
Platform: All

Description:
I don't know if it's the case for all complexTypes, but at least for this one :

<simpleType name="strSeq">
  <restriction base="tns:sequence_5_string"/>
</simpleType>

<complexType name="sequence_5_string">
  <sequence>
    <element name="item" minOccurs="0" maxOccurs="5" type="xsd:string"/>
  </sequence>
</complexType>

The problem is that WSDL2Java generates this method in StrSeq.java :

    // Simple Types must have a String constructor
    public StrSeq(java.lang.String value) {
        this.value = new myNS.Sequence_5_string(value);
    }

whereas Sequence_5_string has not such a constructor.
This is generated by JavaBeanWriter.java:457


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


Mime
View raw message