Class 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.