modified: ../../../../main/java/de/dhbwstuttgart/bytecode/BytecodeGenMethod.java

This commit is contained in:
pl@gohorb.ba-horb.de 2020-01-21 14:10:38 +01:00
parent d55e6b3b75
commit a9d6e08a20

View File

@ -786,7 +786,7 @@ public class BytecodeGenMethod implements StatementVisitor {
java.lang.reflect.Method[] methods = cLoader.loadClass(superClazz).getMethods();
System.out.println("Methods of " + superClass + " ");
methodRefl = getMethod(methodCall.name, methodCall.arglist.getArguments().size(), methods);
methodRefl = getMethod(methodCall.name, methodCall.arglist.getArguments().size(), methCallType, typesOfParams, methods);
break;
} catch (Exception e3) {
@ -934,7 +934,6 @@ public class BytecodeGenMethod implements StatementVisitor {
*/
private java.lang.reflect.Method getMethod(String name, int i, java.lang.reflect.Method[] methods) {
for(java.lang.reflect.Method m : methods) {
//Fehler
if(name.equals(m.getName()) && i == m.getParameterCount()) {
return m;
}