fix type descriptor

This commit is contained in:
Bob Pan 2017-01-17 17:03:55 +08:00
parent d6383b7d1d
commit 5eebfbc642

View File

@ -84,7 +84,7 @@ public class J2IRConverter {
if (methodNode.tryCatchBlocks != null) {
for (TryCatchBlockNode tcb : methodNode.tryCatchBlocks) {
target.traps.add(new Trap(getLabel(tcb.start), getLabel(tcb.end), new LabelStmt[]{getLabel(tcb.handler)},
new String[]{tcb.type}));
new String[]{tcb.type == null ? null : Type.getObjectType(tcb.type).getDescriptor()}));
int handlerIdx = insnList.indexOf(tcb.handler);
handlers.set(handlerIdx);