All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.patches.12-LPS-105899.patch Maven / Gradle / Ivy

diff --git a/org/apache/axis/description/JavaServiceDesc.java b/org/apache/axis/description/JavaServiceDesc.java
index 606b7d5b2507..dfb5f2f56d34 100644
--- a/org/apache/axis/description/JavaServiceDesc.java
+++ b/org/apache/axis/description/JavaServiceDesc.java
@@ -40,7 +40,6 @@ import java.lang.reflect.InvocationTargetException;
 import java.lang.reflect.Method;
 import java.lang.reflect.Modifier;
 import java.util.ArrayList;
-import java.util.Arrays;
 import java.util.Collection;
 import java.util.Collections;
 import java.util.Comparator;
@@ -532,7 +531,8 @@ public class JavaServiceDesc implements ServiceDesc {
                 {
                     Method meth1 = ((OperationDesc)o1).getMethod();
                     Method meth2 = ((OperationDesc)o2).getMethod();
-                    return meth2.toString().compareTo(meth1.toString());
+                    return (meth1.getParameterTypes().length -
+                                         meth2.getParameterTypes().length);
                 }
             });
 
@@ -641,13 +641,6 @@ public class JavaServiceDesc implements ServiceDesc {
         // Find the method.  We do this once for each Operation.
         
         Method[] methods = getMethods(implClass);
-
-		Arrays.sort(methods, new Comparator() {
-			@Override
-			public int compare(Method m1, Method m2) {
-				return m2.toString().compareTo(m1.toString());
-			}
-		});
         // A place to keep track of possible matches
         Method possibleMatch = null;
         




© 2015 - 2025 Weber Informatics LLC | Privacy Policy