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 bu...@apache.org on 2003/10/01 21:12:35 UTC

DO NOT REPLY [Bug 23551] New: - array bean pattern returns "i[i]"

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