RFR: JDK-8310550: Adjust references to rt.jar
Alan Bateman
alanb at openjdk.org
Wed Jun 28 13:19:03 UTC 2023
On Wed, 28 Jun 2023 12:54:10 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
> Hi Alan, regarding usage of class VM I get 'package jdk.internal.misc is declared in module java.base, which does not export it to module java.sql' Is there any concern to export it as well to module java.sql ? And btw did you mean to use it like this, in the if ?
>
> `if (callerCL == null || VM.isSystemDomainLoader(callerCL)) { callerCL = Thread.currentThread().getContextClassLoader(); }`
It was just a passing comment, I didn't meant to suggest changing it as part of this PR. We have always think twice before adding qualified exports from java.base and this is case where java.sql is very "non-core", we don't want to give it any access to java.base internals.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/14593#discussion_r1245197137
More information about the core-libs-dev
mailing list