On 24/04/2017 14:53, Sander Mak wrote:
:
What's the idea behind this distinction? The Test class fails just as well with
an IllegalAccessException without the --permit-illegal-access flag. Only, I
don't get to see the problem when running with --permit-illegal-access unless
the access is don
I was trying out the --permit-illegal-access flag with a simple class that uses
an encapsulated type from the JDK by (non-reflectively) instantiating it in the
main method:
$ java Test
Exception in thread "main" java.lang.IllegalAccessError: class Test (in unnamed
module @0x7b3300e5) cannot acc