Class ReflectionHack
- java.lang.Object
-
- com.fasterxml.jackson.module.blackbird.util.ReflectionHack
-
public class ReflectionHack extends Object
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.
-
-
Constructor Summary
Constructors Constructor Description ReflectionHack()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MethodHandles.Lookup
privateLookupIn(Class<?> lookup, MethodHandles.Lookup orig)
-
-
-
Method Detail
-
privateLookupIn
public static MethodHandles.Lookup privateLookupIn(Class<?> lookup, MethodHandles.Lookup orig) throws IllegalAccessException
- Throws:
IllegalAccessException
-
-