< prev index next >

src/java.xml/share/classes/javax/xml/catalog/CatalogManager.java

Print this page

        

@@ -60,11 +60,13 @@
      *
      * @return an instance of a {@code Catalog}
      * @throws CatalogException If an error occurs while parsing the catalog
      */
     public static Catalog catalog(CatalogFeatures features, String... paths) {
-        return new CatalogImpl(features, paths);
+        CatalogImpl catalog = new CatalogImpl(features, paths);
+        catalog.load();
+        return catalog;
     }
 
     /**
      * Creates an instance of a {@code CatalogResolver} using the specified catalog.
      *
< prev index next >