Proposal: Allow illegal reflective access by default in JDK 9
Alan Bateman
Alan.Bateman at oracle.com
Fri May 19 11:27:40 UTC 2017
On 19/05/2017 11:41, Nicolai Parlog wrote:
> :
>
> A module depends on an internal type and is compiled successfully
> thanks to --add-exports. At run time it would fail without flags and
> would work with --add-exports but it also works with --add-opens.
>
That is correct, assuming you mean a reference to a public member of a
public type, and the module declares `requires $MODULE` to establish the
readability (this part is ignored when discussing code on the class path
because unnamed modules read all modules).
-Alan
More information about the jigsaw-dev
mailing list