Class PrivateLookupInKludge


  • final class PrivateLookupInKludge
    extends java.lang.Object
    this is a required kludge for JDK 8. Remove once we move past JDK8 compatibility.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static int ANY_ACCESS  
      private static java.lang.reflect.Method PRIVATE_LOOKUP_IN  
      private static java.util.Map<java.lang.Class<?>,​java.lang.invoke.MethodHandles.Lookup> PRIVATE_LOOKUPS  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static java.lang.invoke.MethodHandles.Lookup getConstructorLookup​(java.lang.Class<?> type)  
      (package private) static java.lang.invoke.MethodHandles.Lookup lookupFor​(java.lang.Class<?> clazz)  
      private static java.lang.reflect.Method privateLookupIn()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • PRIVATE_LOOKUP_IN

        private static final java.lang.reflect.Method PRIVATE_LOOKUP_IN
      • PRIVATE_LOOKUPS

        private static final java.util.Map<java.lang.Class<?>,​java.lang.invoke.MethodHandles.Lookup> PRIVATE_LOOKUPS
    • Constructor Detail

      • PrivateLookupInKludge

        private PrivateLookupInKludge()
    • Method Detail

      • privateLookupIn

        private static java.lang.reflect.Method privateLookupIn()
      • lookupFor

        static java.lang.invoke.MethodHandles.Lookup lookupFor​(java.lang.Class<?> clazz)
      • getConstructorLookup

        private static java.lang.invoke.MethodHandles.Lookup getConstructorLookup​(java.lang.Class<?> type)
                                                                           throws java.lang.ReflectiveOperationException
        Throws:
        java.lang.ReflectiveOperationException