New candidate JEP: 403: Strongly Encapsulate JDK Internals
Christian Stein
sormuras at gmail.com
Thu Mar 25 14:03:15 UTC 2021
On Thu, Mar 25, 2021 at 12:26 PM Alan Bateman <Alan.Bateman at oracle.com>
wrote:
> [...]
>
> More generally, tests for modules, say white box tests that exercise
> package private methods, can continue to be compiled and run "as if"
> they are part of the module. The Maven/other plugins for testing will
> use --patch-module, and maybe other options, to the setup for the tests.
>
I also don't think that tests are impacted by this JEP -- unless
they used JDK Internals which are then no longer accessible.
I wrote a blog post about "Testing in the Modular World" [1].
It explains the --patch-module technique mentioned by Alan.
Soon, I'll update the text driven by comments I got from Alex
Buckely and new insights I collected over the last two years.
Cheers,
Christian
[1]: https://sormuras.github.io/blog/2018-09-11-testing-in-the-modular-world
More information about the jigsaw-dev
mailing list