Fixing the method getGenericParameterTypes to include parameterized object such as...
[jpf-core.git] / src / main / gov / nasa / jpf / vm / MethodInfo.java
index 7a1d48db1ebd3e56a4d49d7eb251825ae42694a0..4176f686ee88b4339c8080f64be06016dfa8dad2 100644 (file)
@@ -509,7 +509,9 @@ public class MethodInfo extends InfoObject implements GenericSignatureHolder  {
     // TODO: in the class file.
     if (genericSignature == null || genericSignature.equals("") || genericSignature.contains("<*>"))
       return getArgumentTypeNames();
-    return Types.getArgumentTypeNames(genericSignature);
+    // We need to first find the start of the method parameters in the signature
+    String methodParameters = genericSignature.substring(genericSignature.indexOf('('));
+    return Types.getArgumentTypeNames(methodParameters);
   }
 
   public int getArgumentsSize () {