Please, review the following change Issue : https://bugs.openjdk.java.net/browse/JDK-8080663 Webrev: http://cr.openjdk.java.net/~jbachorik/8080663/webrev.00
The title says it all. This enhancement is about replacing the arbitrary reflection based code with a cleaner approach based on sun.misc.SharedSecrets class.
Thanks, -JB-