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

Public entries not searched when prefer='system'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • xml
    • None
    • 9
    • b115

      This is the test code:
      Catalog c = CatalogManager.catalog(CatalogFeatures.builder().with(CatalogFeatures.Feature.PREFER, "system").build(), RESOURCES + "same_sys_pub.xml");
              assertEquals("http://local/base/dtd/system.dtd", c.matchPublic("http://openjdk.java.net/xml/catalog/dtd/system.dtd"));

      and following are the relevant entries in same_sys_pub.xml catalog file:
       <system systemId="http://openjdk.java.net/xml/catalog/dtd/system.dtd" uri="system.dtd"/>
          <public publicId="http://openjdk.java.net/xml/catalog/dtd/system.dtd" uri="public.dtd"/>

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

              Created:
              Updated:
              Resolved: