Top Description Inners Constructors Methods
com.fasterxml.jackson.module.blackbird.util

public Class ReflectionHack

extends Object
Class Inheritance
Imports
java.lang.invoke.MethodHandle, .MethodHandles, .MethodHandles.Lookup, .MethodType, java.lang.reflect.Constructor, java.util.logging.Level, .Logger, com.fasterxml.jackson.module.blackbird.BlackbirdModule

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 and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static MethodHandles.Lookup
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ReflectionHackback to summary
public ReflectionHack()

Method Detail

privateLookupInback to summary
public static MethodHandles.Lookup privateLookupIn(Class<?> lookup, MethodHandles.Lookup orig) throws IllegalAccessException
com.fasterxml.jackson.module.blackbird.util back to summary

pack-priv Class ReflectionHack.Java8

extends Object
Class Inheritance
  • java.lang.Object
  • com.fasterxml.jackson.module.blackbird.util.ReflectionHack.Java8

Field Summary

Modifier and TypeField and Description
private static final Constructor<MethodHandles.Lookup>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public static MethodHandles.Lookup
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

FACTORYback to summary
private static final Constructor<MethodHandles.Lookup> FACTORY

Constructor Detail

Java8back to summary
pack-priv Java8()

Method Detail

privateLookupInback to summary
public static MethodHandles.Lookup privateLookupIn(Class<?> lookup)
com.fasterxml.jackson.module.blackbird.util back to summary

pack-priv Class ReflectionHack.Java9Up

extends Object
Class Inheritance
  • java.lang.Object
  • com.fasterxml.jackson.module.blackbird.util.ReflectionHack.Java9Up

Field Summary

Modifier and TypeField and Description
pack-priv static final MethodHandle

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private static MethodHandle
init()

public static MethodHandles.Lookup
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

FACTORYback to summary
pack-priv static final MethodHandle FACTORY

Constructor Detail

Java9Upback to summary
pack-priv Java9Up()

Method Detail

initback to summary
private static MethodHandle init()
privateLookupInback to summary
public static MethodHandles.Lookup privateLookupIn(Class<?> lookup, MethodHandles.Lookup orig)