This is an automated email from the ASF dual-hosted git repository. garydgregory pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/commons-xml.git
commit 55ebb4c58ab4d2a64e98b110db684ad96eed6f34 Author: Gary Gregory <[email protected]> AuthorDate: Wed Aug 26 10:06:03 2026 -0400 FallbackIgnoreURIResolver.newEmptyDocument() now throws HardeningException instead of IllegalStateException. Just like the existing FallbackIgnoreLSResourceResolver.domImplementationLS(). --- src/main/java/org/apache/commons/xml/FallbackIgnoreURIResolver.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/xml/FallbackIgnoreURIResolver.java b/src/main/java/org/apache/commons/xml/FallbackIgnoreURIResolver.java index 21a4305..72b36d0 100644 --- a/src/main/java/org/apache/commons/xml/FallbackIgnoreURIResolver.java +++ b/src/main/java/org/apache/commons/xml/FallbackIgnoreURIResolver.java @@ -59,7 +59,7 @@ private static Document newEmptyDocument() { try { return DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument(); } catch (final ParserConfigurationException e) { - throw new IllegalStateException(e); + throw new HardeningException("A DocumentBuilder cannot be created which satisfies the configuration requested.", e); } }
