missing an implementation of NamespaceContext which is required by XPath

XMLWordPrintable

    • Type: Bug
    • Resolution: Future Project
    • Priority: P3
    • 5.0
    • Affects Version/s: 6
    • Component/s: xml

      missing an implementation of NamespaceContext which is required by XPath
      see also CR : 6376058

      This issue is with the jdk1.6.0 PIT build for b96 -

      ---------------------- Testcase -----------------------
      import javax.xml.xpath.XPath;
      import javax.xml.xpath.XPathFactory;
      import javax.xml.namespace.NamespaceContext;

      public class Test{

         public static void main(String args[]){
           Test t = new Test();
            t.checkXPath56();
         }

          private void checkXPath56() {
          
           XPathFactory xpathFactory = XPathFactory.newInstance();
           if( xpathFactory instanceof XPathFactory ){
           XPath xpath = xpathFactory.newXPath();
      NamespaceContext namespaceContext = xpath.getNamespaceContext();
      System.out.println("checkXPath56() : "+namespaceContext );

           // - updating the testcase as behaviour has changed - see CR : 6376058 for details
      if( namespaceContext != null ){
      System.out.println("checkXPath56() : passed ");
      }else{
      System.out.println("checkXPath56() : failed - "+namespaceContext);
      }
                 }
          }

      }
      ---------------------------------------------------------------------

            Assignee:
            Joe Wang
            Reporter:
            Sreejith Ak (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: