Integrated: 8254566: Clarify the spec of ClassLoader::getClassLoadingLock for non-parallel capable loader

Mandy Chung mchung at openjdk.org
Mon Jul 3 16:08:04 UTC 2023


On Thu, 29 Jun 2023 23:39:55 GMT, Mandy Chung <mchung at openjdk.org> wrote:

> The spec of `ClassLoader::getClassLoadingLock` is unclear that this method is intended for parallel-capable class loader implementations to provide an alternate implementation.   For non-parallel-capable class loaders, this method should return this `ClassLoader` object.   The javadoc uses "the default implementation" which could be interpreted that non-parallel-capable class loaders can also override this implementation, which is not the intent.  See https://openjdk.org/groups/core-libs/ClassLoaderProposal.html.

This pull request has now been integrated.

Changeset: b9198f99
Author:    Mandy Chung <mchung at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/b9198f993173b0fbdc7ff1400e2205d3969370da
Stats:     16 lines in 1 file changed: 9 ins; 0 del; 7 mod

8254566: Clarify the spec of ClassLoader::getClassLoadingLock for non-parallel capable loader

Reviewed-by: dholmes, darcy

-------------

PR: https://git.openjdk.org/jdk/pull/14720


More information about the core-libs-dev mailing list