This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push: new 34e8854 CAMEL-12136: Fix potential ClassCastException when using camel-saxon in SAXSource mode with xpath and having logging namespaces enabled. 34e8854 is described below commit 34e8854a17d198add8d7915c03f1ed7f1a1912e9 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Fri Jan 12 14:50:00 2018 +0100 CAMEL-12136: Fix potential ClassCastException when using camel-saxon in SAXSource mode with xpath and having logging namespaces enabled. --- camel-core/src/main/java/org/apache/camel/builder/xml/XPathBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camel-core/src/main/java/org/apache/camel/builder/xml/XPathBuilder.java b/camel-core/src/main/java/org/apache/camel/builder/xml/XPathBuilder.java index 70b2abd..4b61f8f 100644 --- a/camel-core/src/main/java/org/apache/camel/builder/xml/XPathBuilder.java +++ b/camel-core/src/main/java/org/apache/camel/builder/xml/XPathBuilder.java @@ -884,7 +884,7 @@ public class XPathBuilder extends ServiceSupport implements CamelContextAware, E answer = (NodeList) xpathExpression.evaluate(source.getNode(), XPathConstants.NODESET); } else if (document instanceof SAXSource) { SAXSource source = (SAXSource) document; - // since its a SAXSource it me not return an NodeList + // since its a SAXSource it may not return an NodeList (for example if using Saxon) Object result = xpathExpression.evaluate(source.getInputSource(), XPathConstants.NODESET); if (result instanceof NodeList) { answer = (NodeList) result; -- To stop receiving notification emails like this one, please contact ['"commits@camel.apache.org" <commits@camel.apache.org>'].