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

Lance Andersen lance.andersen at oracle.com
Thu Jan 26 14:03:22 UTC 2017


+1
> On Jan 26, 2017, at 6:29 AM, Daniel Fuchs <daniel.fuchs at oracle.com> wrote:
> 
> 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

 <http://oracle.com/us/design/oracle-email-sig-198324.gif>
 <http://oracle.com/us/design/oracle-email-sig-198324.gif> <http://oracle.com/us/design/oracle-email-sig-198324.gif>
 <http://oracle.com/us/design/oracle-email-sig-198324.gif>Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037
Oracle Java Engineering 
1 Network Drive 
Burlington, MA 01803
Lance.Andersen at oracle.com <mailto:Lance.Andersen at oracle.com>





More information about the core-libs-dev mailing list