[JAXP] RFR: 8173260: CatalogManager.catalogResolver should not fail when non-existing URI is passed to it

Daniel Fuchs daniel.fuchs at oracle.com
Thu Jan 26 11:29:36 UTC 2017


Hi,

Please find below a fix for

8173260: CatalogManager.catalogResolver should not fail
          when non-existing URI is passed to it
https://bugs.openjdk.java.net/browse/JDK-8173260

The specification for CatalogManager.catalogResolver and
CatalogManager.catalog says that invalid catalog entries
will be ignored.

However, this is not what happens when a catalog is created
with an URI that points to a file (or jar) which does not exist.
In that case, instead of ignoring the catalog entry,
an IllegalArgumentException is thrown, even if the URL itself is
valid.

This fix proposes to simply remove the special case that
the implementation makes for file or jar URLs.

test/javax/xml/jaxp/unittest/catalog/CatalogFileInputTest.java
is updated to reflect this change.

http://cr.openjdk.java.net/~dfuchs/webrev_8173260/webrev.01/

best regards,

-- daniel


More information about the core-libs-dev mailing list