diff --git a/src/main/java/de/dhbwstuttgart/bytecode/BytecodeGenMethod.java b/src/main/java/de/dhbwstuttgart/bytecode/BytecodeGenMethod.java index 3bdf21ea..0565d933 100644 --- a/src/main/java/de/dhbwstuttgart/bytecode/BytecodeGenMethod.java +++ b/src/main/java/de/dhbwstuttgart/bytecode/BytecodeGenMethod.java @@ -754,8 +754,7 @@ public class BytecodeGenMethod implements StatementVisitor { public void visit(MethodCall methodCall) { boolean parentBinary = isParentBinary; System.out.println("In MethodCall = " + methodCall.name); - //String receiverName = resolver.getResolvedType(methodCall.receiver.getType()); - String receiverName = resolver.getResolvedType(methodCall.receiverType); + String receiverName = resolver.getResolvedType(methodCall.receiver.getType()); System.out.println("Methods of " + receiverName + " "); java.lang.reflect.Method methodRefl = null; String clazz = receiverName.replace("/", "."); @@ -769,8 +768,7 @@ public class BytecodeGenMethod implements StatementVisitor { ClassLoader cLoader2; String methCallType = resultSet.resolveType(methodCall.getType()).resolvedType.acceptTV(new TypeToDescriptor()); - //String[] typesOfParams = getTypes(methodCall.arglist.getArguments()); - String[] typesOfParams = getTypes(methodCall.argTypes); + String[] typesOfParams = getTypes(methodCall.arglist.getArguments()); try { clazz = getRawClassName(receiverName, clazz); @@ -919,11 +917,11 @@ public class BytecodeGenMethod implements StatementVisitor { } return clazz; } - - private String[] getTypes(List arguments) { + + private String[] getTypes(List arguments) { String[] types = new String[arguments.size()]; for(int i = 0; i>> { //writeLog("MAX: " + oup.max(resultPrime.iterator()).toString()); } } - break;//Wenn ein unifier gefunden ist reicht es aus PL 2020-03-07 - } } diff --git a/src/test/resources/bytecode/javFiles/MatrixOP.jav b/src/test/resources/bytecode/javFiles/MatrixOP.jav index 52c3fe96..21d37347 100644 --- a/src/test/resources/bytecode/javFiles/MatrixOP.jav +++ b/src/test/resources/bytecode/javFiles/MatrixOP.jav @@ -1,6 +1,6 @@ import java.util.Vector; import java.lang.Integer; -import java.lang.Byte; +//import java.lang.Byte; import java.lang.Boolean; public class MatrixOP extends Vector> {