Skip to content

Commit

Permalink
避免agent在低版本asm环境运行时,ClassWriter抛出error不能被catch
Browse files Browse the repository at this point in the history
辅助运行时错误跟踪
  • Loading branch information
lidongbo committed Apr 25, 2014
1 parent c73c64e commit c77d5b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public byte[] transform(ClassLoader loader, String className, Class<?> classBein
reader.accept(adapter, 0);
// 生成新类字节码
return writer.toByteArray();
} catch (Exception e) {
} catch (Throwable e) {
e.printStackTrace();
// 返回旧类字节码
return classfileBuffer;
Expand Down

0 comments on commit c77d5b2

Please sign in to comment.