On 09/12/2016 23:06, Stephen Felts wrote:
I would highly recommend running with
_JAVA_OPTIONS=-Dsun.reflect.debugModuleAccessChecks=true
It will tell you what add-options are required.
One minor downside is that it will produce the warning in cases where the
software is already correctly handling the exception from setAccessible, so
there can be noise.
Yes, this is a useful property to debug cases where setAccessible fails
because the package is not exported or opened to the caller. There is
more on this in JEP 261.
-Alan.