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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: xml
    • Subcomponent:
    • Introduced In Build:
      b112
    • Introduced In Version:
      9
    • Resolved In Build:
      b117

      Description

      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]

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: