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

Liam Miller-Cushon cushon at openjdk.org
Tue Jan 14 15:07:32 UTC 2025


> 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 three additional commits since the last revision:

 - Merge branch 'master' into JDK-8323740
 - 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/278d7017..a9bacdfd

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

  Stats: 34821 lines in 1225 files changed: 12654 ins; 16781 del; 5386 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