From 3c7b1451d47ccf63d7b3148b49acbe17160d3abc Mon Sep 17 00:00:00 2001 From: Fayez Abu Alia Date: Wed, 26 Sep 2018 16:25:52 +0200 Subject: [PATCH] MatrixTest funktioniert --- src/de/dhbwstuttgart/bytecode/BytecodeGenMethod.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/de/dhbwstuttgart/bytecode/BytecodeGenMethod.java b/src/de/dhbwstuttgart/bytecode/BytecodeGenMethod.java index 45d6f7e7..6bd1829d 100644 --- a/src/de/dhbwstuttgart/bytecode/BytecodeGenMethod.java +++ b/src/de/dhbwstuttgart/bytecode/BytecodeGenMethod.java @@ -777,11 +777,14 @@ public class BytecodeGenMethod implements StatementVisitor { pos = checkCast.indexOf("<"); mv.visitTypeInsn(Opcodes.CHECKCAST,checkCast.substring(0,pos)); } - + if(isBinaryExp) + doUnboxing(getResolvedType(methodCall.getType())); } - if(isBinaryExp) - doUnboxing(getResolvedType(methodCall.getType())); + if(methodRefl == null) { + if(isBinaryExp) + doUnboxing(getResolvedType(methodCall.getType())); + } }