Proposal: Allow illegal reflective access by default in JDK 9

Andrew Haley aph at
Fri May 19 12:54:33 UTC 2017

On 19/05/17 11:11, Peter Levart wrote:
> On 05/19/2017 01:17 AM, Nicolai Parlog wrote:
>> With illegal access being permitted by default much fewer developers
>> will be aware of the problem and much less pressure will be put on
>> library and framework maintainers as well as on project management to
>> invest into paying back this particular form of technical debt. So we
>> get much less momentum to make the necessary changes in exchange for...
>> not having to add a flag? That's ridiculous, an Armutszeugnis[2] for the
>> Java community!
> +1
> I think that --illegal-access=permit-silently or equivalent is a 
> reasonable request (in addition to other modes), but please make the 
> --illegal-access=deny the default!

I don't think that's practical because, as Mark Reinhold put it, "the
strong encapsulation of JDK-internal APIs has, in particular,
triggered many worried expressions of concern that code that works on
JDK 8 today will not work on JDK 9 tomorrow, yet no advance warning of
this change was given in JDK 8."


More information about the jigsaw-dev mailing list