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

api/javax_xml/xpath/XPath/index.html#SetGet[SetGet001] fails in b94

XMLWordPrintable

    • b96
    • generic
    • generic
    • Verified

      JCK : JCK6.0 b28
      J2SE : FAIL - mustang b94, PASS mustang b93 tiger u7
      Platform[s] : FAIL - seems to be all
      switch/Mode : FAIL - default

      Test api/javax_xml/xpath/XPath/index.html#SetGet[SetGet001] fails since b94. Test expects that xpath.getNamespaceContext should return null for empty document according to specification of this method ("null is returned in no namespace context is in effect.").

      Test body is:

          public Status SetGet001() {
              try {
                  XPathFactory xpf = XPathFactory.newInstance(XPathConstants.DOM_OBJECT_MODEL);
                  XPath xpath = xpf.newXPath();

                  if (xpath.getNamespaceContext() != null) {
                      return Status.failed("Expected null. Returned non-null.");
                  }

                  return Status.passed("OK");
              } catch (XPathException e) {
                  return Status.failed(e.toString());
              }
          }

            duke J. Duke
            pastepan Pavel Stepanov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: