RFR  8150162: Move sun.misc.Version to a truly internal package
Alan.Bateman at oracle.com
Fri Feb 19 18:08:51 UTC 2016
On 18/02/2016 15:52, Chris Hegarty wrote:
> sun.misc.Version is the core libraries part of a private interface with the
> JVM to query and set specific JVM version and capabilities, as well as
> being responsible for setting the system properties for "java.version”,
> "java.runtime.version", and "java.runtime.name" ( which are generated
> during the build ).
> It is not a "Critical API", as defined by JEP 260, so should be moved
> out of sun.misc and placed into a more appropriate package where it
> can be encapsulated.
> Version is only used by j.l.System during initialization, so I’ve taken the
> liberty of moving it into java.lang as package-private. It could, however,
> be placed in jdk.internal.misc, if it is more generally useful. That said,
> most other usages should be able to use the JDK specific Version API.
This looks okay although I expect we will need to change VersionTest
again soon to not use @run main/bootclasspath.
More information about the core-libs-dev