From 0072791696b634f7778c0f97ac2a93fea5d7db98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B8=94=E6=B0=91=E5=B0=8F=E9=95=87?= <262610965@qq.com> Date: Mon, 2 Dec 2024 10:31:20 +0800 Subject: [PATCH] fix(kit): #407 ClassRefInfoKit invokeSetter --- .../main/java/com/iohao/game/common/kit/asm/ClassRefInfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/common-kit/src/main/java/com/iohao/game/common/kit/asm/ClassRefInfo.java b/common/common-kit/src/main/java/com/iohao/game/common/kit/asm/ClassRefInfo.java index 1a9285366..1eb75428d 100644 --- a/common/common-kit/src/main/java/com/iohao/game/common/kit/asm/ClassRefInfo.java +++ b/common/common-kit/src/main/java/com/iohao/game/common/kit/asm/ClassRefInfo.java @@ -143,7 +143,7 @@ public T invokeGetter(Object object, String filedName) { public ClassRefInfo invokeSetter(Object object, String filedName, Object value) { FieldRefInfo filedRefInfo = filedRefInfoMap.get(filedName); - String methodName = filedRefInfo.getMethodGetName(); + String methodName = filedRefInfo.getMethodSetName(); MethodRefInfo methodRefInfo = getMethodRefInfo(methodName); methodRefInfo.invokeMethod(object, value);