Skip to content

Commit

Permalink
Merge pull request alibaba#26 from lidongbo/master
Browse files Browse the repository at this point in the history
避免agent在低版本asm环境运行时,ClassWriter抛出error不能被catch
  • Loading branch information
丁宇 committed May 12, 2014
2 parents c73c64e + c77d5b2 commit 6e5044c
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 6e5044c

Please sign in to comment.