tomj 02/02/08 12:48:30
Modified: java/src/org/apache/axis/wsdl/fromJava ClassRep.java
Log:
Skip over the getParameterName functions in the Skeleton class
when generating WSDL.
Revision Changes Path
1.13 +8 -4 xml-axis/java/src/org/apache/axis/wsdl/fromJava/ClassRep.java
Index: ClassRep.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/fromJava/ClassRep.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- ClassRep.java 7 Feb 2002 21:29:10 -0000 1.12
+++ ClassRep.java 8 Feb 2002 20:48:30 -0000 1.13
@@ -275,10 +275,14 @@
// add each method in this class to the list
for (int i=0; i < m.length; i++) {
int mod = m[i].getModifiers();
- if (Modifier.isPublic(mod) &&
- // Ignore the getParameterName method from the Skeleton
class
- (!m[i].getName().equals("getParameterName") ||
-
!(Skeleton.class).isAssignableFrom(m[i].getDeclaringClass()))) {
+ if (Modifier.isPublic(mod)) {
+ String methodName = m[i].getName();
+ // Ignore the getParameterName methods from the Skeleton class
+ if (((methodName.equals("getParameterName") ||
+ methodName.equals("getParameterNameStatic")) &&
+
(Skeleton.class).isAssignableFrom(m[i].getDeclaringClass()))) {
+ continue; // skip it
+ }
short[] modes = getParameterModes(m[i]);
Class[] types = getParameterTypes(m[i]);
_methods.add(new MethodRep(m[i], types, modes,