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 26044] New: - org.apache.axis.description.ServiceDesc.syncOperationToClass() ignores superInterface methods of interfaces
Date Sun, 11 Jan 2004 15:14:33 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=26044>.
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=26044

org.apache.axis.description.ServiceDesc.syncOperationToClass() ignores superInterface methods
of interfaces

           Summary: org.apache.axis.description.ServiceDesc.syncOperationToC
                    lass() ignores superInterface methods of interfaces
           Product: Axis
           Version: 1.1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Serialization/Deserialization
        AssignedTo: axis-dev@ws.apache.org
        ReportedBy: penko@rila.bg


Line 600:
        Method [] methods = implClass.getDeclaredMethods();
Line 713
        // Didn't find a match.  Try the superclass, if appropriate
        Class superClass = implClass.getSuperclass();

But if we have:

Interface A{
}

Interface B extends A {

}

And if you publish Interface B, The methads existing in interface will not be 
returned in Line 600, and the superInterface is not returned in line 713 --> so 
you lose all the methods from the superinterface.

The change that I have done the following modification in line 600:

        // Find the method.  We do this once for each Operation.
        Method [] methods;
        if (implClass.isInterface()){
          methods = implClass.getMethods();\\ Returns all methods incl inherited
        }else{
          methods = implClass.getDeclaredMethods();
        }

Mime
View raw message