Workaround for #25

This commit is contained in:
Nico Mexis 2023-09-28 09:04:57 +02:00 committed by Bob Pan
parent cc9861bbd4
commit 9510b74dca

View File

@ -48,7 +48,13 @@ public class ExDex2Asm extends Dex2Asm {
}
}
// code convert ok, copy to MethodWriter and check for Size
mn.accept(mv);
try {
mn.accept(mv);
} catch (Exception e) {
System.out.println("Cannot convert " + clzCtx.classDescriptor);
if (exceptionHandler != null)
exceptionHandler.handleMethodTranslateException(methodNode.method, methodNode, mn, e);
}
if (mw != null) {
try {
AsmBridge.sizeOfMethodWriter(mw);