talsma-ict / reflection

Basic reflection utilities
Apache License 2.0
0 stars 0 forks source link

Investigate Java 9 specific API #26

Open sjoerdtalsma opened 6 years ago

sjoerdtalsma commented 6 years ago

Java 9 offers the caller sensitive MethodHandles.Lookup mechanism that explicitly allows reflective access (private or public) using VarHandle 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.

sjoerdtalsma commented 6 years ago

another blog post