diff --git a/src/de/dhbwstuttgart/bytecode/BytecodeGenMethod.java b/src/de/dhbwstuttgart/bytecode/BytecodeGenMethod.java index 45d6f7e7d..6bd1829d9 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())); + } }