Open sjoerdtalsma opened 6 years ago
Java 9 offers the caller sensitive MethodHandles.Lookup mechanism that explicitly allows reflective access (private or public) using VarHandle objects.
MethodHandles.Lookup
VarHandle
This may be a more elegant solution than open-ing java 9 modules for reflection.
open
See this blog post for a very readable explanation on this topic.
another blog post
Java 9 offers the caller sensitive
MethodHandles.Lookup
mechanism that explicitly allows reflective access (private or public) usingVarHandle
objects.This may be a more elegant solution than
open
-ing java 9 modules for reflection.See this blog post for a very readable explanation on this topic.