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

XPathEvaluationResult.XPathResultType.NODESET maps to incorrect type

    XMLWordPrintable

Details

    Description

      The spec for XPathEvaluationResult.XPathResultType.NODESET
      https://docs.oracle.com/en/java/javase/16/docs/api/java.xml/javax/xml/xpath/XPathEvaluationResult.XPathResultType.html#NODESET
      says:

      > "The XPath 1.0 NodeSet data type. Maps to org.w3c.dom.NodeList."

      However for OpenJDK implementation the following returns null:

         XPathResultType.getQNameType(org.w3c.dom.NodeList.class)

      While BTW for NODE OpenJDK implementation matches the spec and works as expected:

        XPathResultType.getQNameType(Node.class) returns XPathConstants.NODE

      Attachments

        Issue Links

          Activity

            People

              joehw Joe Wang
              dbessono Dmitry Bessonov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: