diff --git a/core/src/main/java/com/taobao/arthas/core/advisor/AdviceListener.java b/core/src/main/java/com/taobao/arthas/core/advisor/AdviceListener.java
index 28d322edf..bcfefee0e 100644
--- a/core/src/main/java/com/taobao/arthas/core/advisor/AdviceListener.java
+++ b/core/src/main/java/com/taobao/arthas/core/advisor/AdviceListener.java
@@ -31,7 +31,7 @@ public interface AdviceListener {
* @throws Throwable 通知过程出错
*/
void before(
- ClassLoader loader, String className, String methodName, String methodDesc,
+ Class> clazz, String methodName, String methodDesc,
Object target, Object[] args) throws Throwable;
/**
@@ -49,7 +49,7 @@ public interface AdviceListener {
* @throws Throwable 通知过程出错
*/
void afterReturning(
- ClassLoader loader, String className, String methodName, String methodDesc,
+ Class> clazz, String methodName, String methodDesc,
Object target, Object[] args,
Object returnObject) throws Throwable;
@@ -67,7 +67,7 @@ public interface AdviceListener {
* @throws Throwable 通知过程出错
*/
void afterThrowing(
- ClassLoader loader, String className, String methodName, String methodDesc,
+ Class> clazz, String methodName, String methodDesc,
Object target, Object[] args,
Throwable throwable) throws Throwable;
diff --git a/core/src/main/java/com/taobao/arthas/core/advisor/AdviceWeaver.java b/core/src/main/java/com/taobao/arthas/core/advisor/AdviceWeaver.java
index 2567a0e7a..aa84db690 100644
--- a/core/src/main/java/com/taobao/arthas/core/advisor/AdviceWeaver.java
+++ b/core/src/main/java/com/taobao/arthas/core/advisor/AdviceWeaver.java
@@ -58,196 +58,6 @@ public class AdviceWeaver extends ClassVisitor implements Opcodes {
};
- /**
- * 方法开始
- * 用于编织通知器,外部不会直接调用
- *
- * @param loader 类加载器
- * @param adviceId 通知ID
- * @param className 类名
- * @param methodName 方法名
- * @param methodDesc 方法描述
- * @param target 返回结果
- * 若为无返回值方法(void),则为null
- * @param args 参数列表
- */
- public static void methodOnBegin(
- int adviceId,
- ClassLoader loader, String className, String methodName, String methodDesc,
- Object target, Object[] args) {
-
- if (isSelfCallRef.get()) {
- return;
- } else {
- isSelfCallRef.set(true);
- }
-
- try {
- // 构建执行帧栈,保护当前的执行现场
- final GaStack