From a1adbd756ccc3566719c587487f671e4f7d9c734 Mon Sep 17 00:00:00 2001 From: Luohuayu Date: Thu, 8 Aug 2019 21:15:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dremap?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/catserver/server/remapper/ReflectionTransformer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/catserver/server/remapper/ReflectionTransformer.java b/src/main/java/catserver/server/remapper/ReflectionTransformer.java index 20ea4e1cf..a06ce003d 100644 --- a/src/main/java/catserver/server/remapper/ReflectionTransformer.java +++ b/src/main/java/catserver/server/remapper/ReflectionTransformer.java @@ -47,8 +47,8 @@ public class ReflectionTransformer { remapVirtualMethodToStatic.put("java/lang/Class;getMethod", DESC_ReflectionMethods); remapVirtualMethodToStatic.put("java/lang/Class;getDeclaredMethod", DESC_ReflectionMethods); remapVirtualMethodToStatic.put("java/lang/Class;getSimpleName", DESC_ReflectionMethods); - remapVirtualMethodToStatic.put("java/lang/Field;getName", DESC_ReflectionMethods); - remapVirtualMethodToStatic.put("java/lang/Method;getName", DESC_ReflectionMethods); + remapVirtualMethodToStatic.put("java/lang/reflect/Field;getName", DESC_ReflectionMethods); + remapVirtualMethodToStatic.put("java/lang/reflect/Method;getName", DESC_ReflectionMethods); remapVirtualMethodToStatic.put("java/lang/ClassLoader;loadClass", DESC_ReflectionMethods); remapVirtualMethodToStatic.put("java/lang/invoke/MethodHandles$Lookup;findVirtual", DESC_RemapMethodHandle); remapVirtualMethodToStatic.put("java/lang/invoke/MethodHandles$Lookup;findStatic", DESC_RemapMethodHandle);