From 0a558c6b839c82101a3586d123fba867f581301a Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Thu, 28 Jul 2022 02:24:25 +0200 Subject: [PATCH] fix ReflectField --- .../src/main/java/fr/pandacube/lib/reflect/ReflectField.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pandalib-reflect/src/main/java/fr/pandacube/lib/reflect/ReflectField.java b/pandalib-reflect/src/main/java/fr/pandacube/lib/reflect/ReflectField.java index 2d4eebc..3800550 100644 --- a/pandalib-reflect/src/main/java/fr/pandacube/lib/reflect/ReflectField.java +++ b/pandalib-reflect/src/main/java/fr/pandacube/lib/reflect/ReflectField.java @@ -9,6 +9,9 @@ import java.lang.reflect.Modifier; */ public final class ReflectField extends ReflectMember { + /* Those fields are used to modify the value of a static variable. Depending of the current Java version, + * one of them whill be used for this purpose. + */ private static sun.misc.Unsafe sunMiscUnsafeInstance; private static Field modifiersFieldInFieldClass; static { @@ -24,7 +27,7 @@ public final class ReflectField extends ReflectMember