axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 23551] New: - array bean pattern returns "i[i]"
Date Wed, 01 Oct 2003 19:12:35 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23551>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23551

array bean pattern returns "i[i]"

           Summary: array bean pattern returns "i[i]"
           Product: Axis
           Version: 1.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: WSDL processing
        AssignedTo: axis-dev@ws.apache.org
        ReportedBy: dwilliams@solsticesoftware.com


WSDL2Java creates a class that doesn't compile in this situation.

Create a class named X:
public class X {
  public void methodOne(SomeCOmplexType sct) {
      //
  }
}

And a class named SomeCOmplexType:
public class SomeComplexType {
  public int[] i;
  public SomeComplexType() {
    i = new int[0];
  }
}

Use Java2WSDL to create the WSDL for the class X.
Use WSDL2Java to create the classes based on the WSDL.
Compile the generated classes.

SomeComplexType will not compile because it contains the methods:

public int getI(int i) {
  return i[i];
}
and
public void setI(int i, int value) {
  this.i[i] = value;
}

Mime
View raw message