Integrated: 8344575: Examine usage of ReflectUtil.forName() in java.sql.rowset - XmlReaderContentHandler
Brent Christian
bchristi at openjdk.org
Fri Dec 6 21:21:42 UTC 2024
On Thu, 5 Dec 2024 21:41:28 GMT, Brent Christian <bchristi at openjdk.org> wrote:
> `XmlReaderContentHandler.endElement()` routes a `Class.forName()` call through `ReflectUtil.forName()`. When `sun.reflect.misc.ReflectUtil.forName()` calls the 1-arg `Class.forName()`, it is doing so from `java.base`, and so using the boot loader.
>
> Changing `XmlReaderContentHandler` to use the 3-arg `Class.forName()` method with a null classloader should yield equivalent behavior.
This pull request has now been integrated.
Changeset: e0d63987
Author: Brent Christian <bchristi at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/e0d639878346946d0627a57b0eeb0cac8ca533fc
Stats: 14 lines in 3 files changed: 0 ins; 6 del; 8 mod
8344575: Examine usage of ReflectUtil.forName() in java.sql.rowset - XmlReaderContentHandler
Reviewed-by: lancea, mchung, alanb, liach
-------------
PR: https://git.openjdk.org/jdk/pull/22585
More information about the core-libs-dev
mailing list