RFR: 8323740: java.lang.ExceptionInInitializerError when trying to load XML classes in wrong order [v2]

Liam Miller-Cushon cushon at openjdk.org
Fri Dec 20 19:27:00 UTC 2024


> Please consider this fix for [JDK-8323740](https://bugs.openjdk.org/browse/JDK-8323740), which avoids an `ExceptionInInitializerError` in the class initializer of `XMLDocumentFragmentScannerImpl` and other classes that have a circular dependency on `jdk.xml.internal.JdkXmlUtils`. The change breaks the cycle by moving some initialization out of the class initializer of `JdkXmlUtils`.

Liam Miller-Cushon has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains two additional commits since the last revision:

 - Merge remote-tracking branch 'origin/master' into JDK-8323740
 - 8323740: java.lang.ExceptionInInitializerError when trying to load XML classes in wrong order

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/22803/files
  - new: https://git.openjdk.org/jdk/pull/22803/files/0893b8d2..278d7017

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

  Stats: 30033 lines in 3109 files changed: 19084 ins; 4333 del; 6616 mod
  Patch: https://git.openjdk.org/jdk/pull/22803.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/22803/head:pull/22803

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


More information about the core-libs-dev mailing list