--- old/src/java.base/share/classes/java/lang/reflect/AccessibleObject.java 2020-03-26 16:00:29.000000000 -0700 +++ new/src/java.base/share/classes/java/lang/reflect/AccessibleObject.java 2020-03-26 16:00:28.000000000 -0700 @@ -176,6 +176,12 @@ * to the caller and the package containing the declaring class is not open * to the caller's module.

* + *

This method cannot be used to enable {@linkplain Field#set write} + * access to a final field declared in a {@linkplain Class#isHiddenClass() hidden class}, + * since such fields are not modifiable. The {@code accessible} flag when + * {@code true} suppresses Java language access control checks to only + * enable {@linkplain Field#get read} access to such fields. + * *

If there is a security manager, its * {@code checkPermission} method is first called with a * {@code ReflectPermission("suppressAccessChecks")} permission.