RFR: 8344575: Examine usage of ReflectUtil.forName() in java.sql.rowset - XmlReaderContentHandler [v2]

Brent Christian bchristi at openjdk.org
Fri Dec 6 17:38:22 UTC 2024


> `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.

Brent Christian has updated the pull request incrementally with one additional commit since the last revision:

  Remove ReflectUtil.forName; update module info

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/22585/files
  - new: https://git.openjdk.org/jdk/pull/22585/files/fdb2066b..8202d66b

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=22585&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=22585&range=00-01

  Stats: 6 lines in 2 files changed: 0 ins; 5 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/22585.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/22585/head:pull/22585

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


More information about the core-libs-dev mailing list