Lookup functions

Changes regarding lookup functions include the following:

  • MethodHandles can now be bound to non-abstract methods in interfaces
  • The lookup API allows class lookups from different contexts

The MethodHandles.Lookup.findSpecial(Class<?> refs, String name, MethodType type, Class<?> specialCaller) class has been modified to permit locating super-callable methods on interfaces.

In addition, the following methods have been added to the MethodHandles.Lookup class:

  • Class<?> findClass(String targetName)
  • Class<?> accessClass(Class<?> targetClass)
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset