Integrated: JDK-8281001 Class::forName(String) defaults to system class loader if the caller is null

Tim Prinzing tprinzing at openjdk.java.net
Wed Jun 8 16:25:40 UTC 2022


On Sat, 14 May 2022 00:30:00 GMT, Tim Prinzing <tprinzing at openjdk.org> wrote:

> The Class::forName behavior change to match JNI FindClass is a compatible change and seems pretty attractive as it would be expected that Class::forName would give the same behavior as FindClass which uses the system classloader.  The test for 8281006 was enhanced to test for this change.  Merged master to pick up fixes to unrelated test failures to reduce noise.

This pull request has now been integrated.

Changeset: b92ce269
Author:    Tim Prinzing <tprinzing at openjdk.org>
Committer: Mandy Chung <mchung at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/b92ce2699b604cff638db583215863da8e253db8
Stats:     15 lines in 4 files changed: 8 ins; 3 del; 4 mod

8281001: Class::forName(String) defaults to system class loader if the caller is null

Reviewed-by: mchung

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

PR: https://git.openjdk.java.net/jdk/pull/8711


More information about the core-libs-dev mailing list