-
Bug
-
Resolution: Future Project
-
P3
-
6
-
generic
-
generic
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);
}
}
}
}
---------------------------------------------------------------------
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);
}
}
}
}
---------------------------------------------------------------------
- relates to
-
JDK-6376058 JAXP is missing an implementation of NamespaceContext which is required by XPath and other core func
- Resolved