JEP 403 (openjdk.java.net/jeps/403) will finally finish the trek towards strong encapsulation by only allowing access to internal APIs that were explicitly broken into with --add-export/--add-opens. No more blanket --illegal-access! So... what exactly are internal APIs? 🧵 1/9
2
24
48
0
2
We need to look at the following packages: 1. sun.* 2. com.sun.* First is easy (almost): All sun.* packages are internal *except* for sun.misc, which is exported/opened by the module jdk.unsupported. That gives it a grace period until fully replaced by standard APIs. 2/9