Isolated methods

The MethodHandles.Lookup class is part of the java.lang.invoke package. We use lookup objects to create method handles and a lookup class to access them. Here is the header for the lookup class:

    public static final class MethodHandles.Lookup extends Object

Future changes to the MethodHandles.Lookup class will support the loading of method byte codes without the need for an attached class. Furthermore, these methods will be referenced using method handles. The class will have a new loadCode method.

Get Java 9: Building Robust Modular Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.