forked from JavaTX/JavaCompilerCore
modified: ../../../../main/java/de/dhbwstuttgart/bytecode/BytecodeGenMethod.java
This commit is contained in:
parent
d55e6b3b75
commit
a9d6e08a20
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user