Fix incorrect usage of mapReturnType in param assertions

This commit is contained in:
Alexander Udalov
2013-12-26 18:50:41 +04:00
parent 2553cd1907
commit d8c5b0236d
3 changed files with 15 additions and 9 deletions
@@ -491,7 +491,7 @@ public class AsmUtil {
if (type == null || isNullableType(type)) continue;
int index = frameMap.getIndex(parameter);
Type asmType = state.getTypeMapper().mapReturnType(type);
Type asmType = state.getTypeMapper().mapType(type);
if (asmType.getSort() == Type.OBJECT || asmType.getSort() == Type.ARRAY) {
v.load(index, asmType);
v.visitLdcInsn(parameter.getName().asString());