On Wed, 28 Jun 2023 12:54:10 GMT, Matthias Baesken <[email protected]> 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