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

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

    Details

    • Subcomponent:
    • Resolved In Build:
      b96
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      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());
              }
          }

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: