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)