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

missing an implementation of NamespaceContext which is required by XPath

    XMLWordPrintable

Details

    • Bug
    • Resolution: Future Project
    • P3
    • 5.0
    • 6
    • xml

    Description

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

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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: