Accessing internal packages in JDK 9

mark.reinhold at oracle.com mark.reinhold at oracle.com
Tue Jul 28 14:39:52 UTC 2015


2015/7/28 4:21 -0700, Simon Nash <simon at cjnash.com>:
> ...
> 
> With JDK 9 and Project Jigsaw, I understand that it will no longer be
> possible for my application to directly reference internal sun.* classes.
> Will it still be possible to use ClassLoader.loadClass to load these sun.*
> classes and use reflection to invoke their methods?

Yes, but you'll have to use a command-line flag to make the classes
accessible via the reflection API.

- Mark


More information about the jigsaw-dev mailing list