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(); java.lang.reflect.Method[] methods = cLoader.loadClass(superClazz).getMethods();
System.out.println("Methods of " + superClass + " "); 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; break;
} catch (Exception e3) { } 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) { private java.lang.reflect.Method getMethod(String name, int i, java.lang.reflect.Method[] methods) {
for(java.lang.reflect.Method m : methods) { for(java.lang.reflect.Method m : methods) {
//Fehler
if(name.equals(m.getName()) && i == m.getParameterCount()) { if(name.equals(m.getName()) && i == m.getParameterCount()) {
return m; return m;
} }