Class ReflectionHack
java.lang.Object
com.fasterxml.jackson.module.blackbird.util.ReflectionHack
Allow private access to fields across using a JVM version-appropriate strategy
without having a compile-time dependency on Java 9+.
This entire class can be replaced by a direct call to JDK 9+
MethodHandles
.privateLookupIn
once Jackson targets Java >= 9.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
(package private) static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MethodHandles.Lookup
privateLookupIn
(Class<?> lookup, MethodHandles.Lookup orig)
-
Constructor Details
-
ReflectionHack
public ReflectionHack()
-
-
Method Details
-
privateLookupIn
public static MethodHandles.Lookup privateLookupIn(Class<?> lookup, MethodHandles.Lookup orig) throws IllegalAccessException - Throws:
IllegalAccessException
-