From a9d6e08a20e8b1d878a155a7758fff4d5140437b Mon Sep 17 00:00:00 2001 From: "pl@gohorb.ba-horb.de" Date: Tue, 21 Jan 2020 14:10:38 +0100 Subject: [PATCH] modified: ../../../../main/java/de/dhbwstuttgart/bytecode/BytecodeGenMethod.java --- src/main/java/de/dhbwstuttgart/bytecode/BytecodeGenMethod.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/de/dhbwstuttgart/bytecode/BytecodeGenMethod.java b/src/main/java/de/dhbwstuttgart/bytecode/BytecodeGenMethod.java index 4bde13d8..35ad67da 100644 --- a/src/main/java/de/dhbwstuttgart/bytecode/BytecodeGenMethod.java +++ b/src/main/java/de/dhbwstuttgart/bytecode/BytecodeGenMethod.java @@ -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; }