Author: dkulp
Date: Wed Oct 24 18:53:41 2012
New Revision: 1401822
URL: http://svn.apache.org/viewvc?rev=1401822&view=rev
Log:
Use sun internal classname for xpath
Modified:
servicemix/smx4/specs/trunk/jaxp-api-1.4/src/main/java/javax/xml/xpath/XPathFactoryFinder.java
Modified:
servicemix/smx4/specs/trunk/jaxp-api-1.4/src/main/java/javax/xml/xpath/XPathFactoryFinder.java
URL:
http://svn.apache.org/viewvc/servicemix/smx4/specs/trunk/jaxp-api-1.4/src/main/java/javax/xml/xpath/XPathFactoryFinder.java?rev=1401822&r1=1401821&r2=1401822&view=diff
==============================================================================
---
servicemix/smx4/specs/trunk/jaxp-api-1.4/src/main/java/javax/xml/xpath/XPathFactoryFinder.java
(original)
+++
servicemix/smx4/specs/trunk/jaxp-api-1.4/src/main/java/javax/xml/xpath/XPathFactoryFinder.java
Wed Oct 24 18:53:41 2012
@@ -241,7 +241,12 @@ final class XPathFactoryFinder {
// platform default
if(uri.equals(XPathFactory.DEFAULT_OBJECT_MODEL_URI)) {
if (debug) debugPrintln("attempting to use the platform default
W3C DOM XPath lib");
- return createInstance("org.apache.xpath.jaxp.XPathFactoryImpl");
+ XPathFactory f =
createInstance("com.sun.org.apache.xpath.internal.jaxp.XPathFactoryImpl");
+ if (f == null) {
+ //IBM JDK
+ f = createInstance("org.apache.xpath.jaxp.XPathFactoryImpl");
+ }
+ return f;
}
if (debug) debugPrintln("all things were tried, but none was found.
bailing out.");