RFR [9] 8137058: Clear out all non-Critical APIs from sun.reflect and move to jdk.unsupported

Chris Hegarty chris.hegarty at oracle.com
Wed Apr 13 15:43:07 UTC 2016


This review is for the second significant part of the changes for JEP
260 [1]. When created, the jdk.unsupported module [2] initially
contained the sun.misc package. This issue is will move all the
non-Critical APIs out of sun.reflect, leaving only the critical ones, at
which point sun.reflect can be moved to the jdk.unsupported module.

http://cr.openjdk.java.net/~chegar/8137058/
https://bugs.openjdk.java.net/browse/JDK-8137058

Summary of the changes:

  - Move all existing sun.reflect types to jdk.internal.reflect, and
  fix up references in the libraries, and the VM, to use the new internal
  location.

  - Update tests, as appropriate, to use the new location.

  - Add the minimal set of critical APIs to jdk.unsupported/sun.reflect.
  These ultimately delegate to the internal versions. Additionally, a
  few new tests have been added to exercise these.

-Chris.

[1] https://bugs.openjdk.java.net/browse/JDK-8132928
[2] https://bugs.openjdk.java.net/browse/JDK-8153737



More information about the core-libs-dev mailing list