Reason for the enhancement

This enhancement stemmed from developer feedback and the desire to make the MethodHandle, MethodHandles, and MethodHandles.Lookup classes much easier to use. There was also the call to add additional use cases.

The changes resulted in the following benefits:

  • Enabled precision in the usage of the MethodHandle API
  • Instantiation reduction
  • Increased JVM compiler optimizations

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.