On 3/17/21 10:05 PM, mark.reinh...@oracle.com wrote: > https://openjdk.java.net/jeps/403 > > Summary: Strongly encapsulate all internal elements of the JDK, except > for critical internal APIs such as sun.misc.Unsafe. It will no longer > be possible to relax the strong encapsulation of internal elements > via a single command-line option, as was possible in JDKÂ 9 through > JDKÂ 16.
Looking at the JEP, I don't immediately see anything about long-term use of illegal accesses in test code. There are a good many cases where we need to test private and protected classes and fields, for example. Is there a proposal to allow this? -- Andrew Haley (he/him) Java Platform Lead Engineer Red Hat UK Ltd. <https://www.redhat.com> https://keybase.io/andrewhaley EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671