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();
|
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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user