Integrated: 8323740: java.lang.ExceptionInInitializerError when trying to load XML classes in wrong order

Liam Miller-Cushon cushon at openjdk.org
Tue Jan 14 17:30:53 UTC 2025


On Wed, 18 Dec 2024 02:38:28 GMT, Liam Miller-Cushon <cushon at openjdk.org> wrote:

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

This pull request has now been integrated.

Changeset: e6902cfc
Author:    Liam Miller-Cushon <cushon at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/e6902cfca43c7434be9aa4a0dde4e44eae7ebf29
Stats:     46 lines in 2 files changed: 44 ins; 0 del; 2 mod

8323740: java.lang.ExceptionInInitializerError when trying to load XML classes in wrong order

Reviewed-by: joehw

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

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


More information about the core-libs-dev mailing list