RFR  8153737: Unsupported Module
mandy.chung at oracle.com
Fri Apr 8 02:52:03 UTC 2016
> On Apr 7, 2016, at 10:14 AM, Chris Hegarty <chris.hegarty at oracle.com> wrote:
> Enough technical debt has been paid down that we can now create the new
> JDK-specific module as proposed by JEP 260 , named jdk.unsupported.
> This module will initially contain, and export, the sun.misc package,
> and will eventually export the sun.reflect package too ( once it has
> been sanitized ). The jdk.unsupported module will be present in full JRE
> and JDK images.
I’m glad to see jdk.unsupported module be created.
jdeps tests are intended to test references to sun.misc and flagged as internal API. The jdeps test changes should be reverted.
It’s exported to allow existing applications to continue to run on JDK 9 while sun.misc and other critical internal APIs remains to be internal APIs. jdeps -jdkinternals should flag them and get developers’ attention to prepare to migrate when the replacements are available.
Other than that, looks good. There are so many tests that have @modules java.base sun/misc but unused. It’s good that you clean that up. I agree with Alan that JDK modules depending on jdk.unsupported should get the priority to get eliminated by FC.
More information about the core-libs-dev