Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8154220

Semi-colon delimited list of catalog files in System property is throwing IllegalArgumentException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • xml
    • b112
    • 9
    • b117

      Setting multiple paths for catalog files in System property, delimited by a semi-colon(;) is not honored and IllegalArgumentException is thrown.

      This is the code snipet:
      String files = file_path_1 + ";" + file_path_2;
      System.setProperty("javax.xml.catalog.files", files);
      CatalogResolver catalogResolver = CatalogManager.catalogResolver(CatalogFeatures.defaults());

      URL of the failing tests:
      api/javax_xml/catalog/CatalogManager/index.html#CatalogResolverTests[hierarchyOfCatFiles2]
      api/javax_xml/catalog/CatalogManager/index.html#CatalogTests[hierarchyOfCatFilesSys]
      api/javax_xml/catalog/CatalogManager/index.html#CatalogUriResolverTests[hierarchyOfCatFiles2]

            joehw Joe Wang
            pchinnasamy Prabushankar Chinnasamy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: