From 123754c217175b05ee734426df9bea458826edef Mon Sep 17 00:00:00 2001 From: FlyJingFish Date: Fri, 6 Dec 2024 22:16:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=A4=9A=E7=BA=BF=E7=A8=8Bbu?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../flyjingfish/android_aop_plugin/utils/ClassFileUtils.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/android-aop-plugin/src/main/kotlin/com/flyjingfish/android_aop_plugin/utils/ClassFileUtils.kt b/android-aop-plugin/src/main/kotlin/com/flyjingfish/android_aop_plugin/utils/ClassFileUtils.kt index d6892161..84f9a1a7 100644 --- a/android-aop-plugin/src/main/kotlin/com/flyjingfish/android_aop_plugin/utils/ClassFileUtils.kt +++ b/android-aop-plugin/src/main/kotlin/com/flyjingfish/android_aop_plugin/utils/ClassFileUtils.kt @@ -149,7 +149,10 @@ object ClassFileUtils { return } val list = invokeClasses.computeIfAbsent(staticClassName) { mutableListOf() } - list.add(InvokeClass(classMethodName,invokeBody,methodName)) + synchronized(list){ + list.add(InvokeClass(classMethodName,invokeBody,methodName)) + } + val className = if (reflectInvokeMethod && reflectInvokeMethodStatic){ staticClassName