Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2008-05-12 16:11:25 -0400
committerpelder2008-05-12 16:11:25 -0400
commit2868ddb62dfe143fabd95e7073b28593e4ab6f22 (patch)
tree208fec28372fee8fba06d388255bf77f409720b1
parentec75f7d74fa8af7e40de49f74a1369c8c8e3b2cb (diff)
downloadorg.eclipse.jet-2868ddb62dfe143fabd95e7073b28593e4ab6f22.tar.gz
org.eclipse.jet-2868ddb62dfe143fabd95e7073b28593e4ab6f22.tar.xz
org.eclipse.jet-2868ddb62dfe143fabd95e7073b28593e4ab6f22.zip
[231654] XPath functions that return byte[] (or any primitive array type) result in class-cast exceptions
-rw-r--r--plugins/org.eclipse.jet/src/org/eclipse/jet/internal/xpath/ast/Function.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/xpath/ast/Function.java b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/xpath/ast/Function.java
index 5c5cbe9..d7137e6 100644
--- a/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/xpath/ast/Function.java
+++ b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/xpath/ast/Function.java
@@ -76,7 +76,7 @@ public class Function extends ExprNode
try
{
final Object result = function.evaluate(functionArgValues);
- if(result != null && result.getClass().isArray()) {
+ if(result instanceof Object[]) {
return XPathUtil.asNodeSet((Object[])result);
} else if(result instanceof Collection && !(result instanceof NodeSet)) {
return XPathUtil.asNodeSet((Collection)result);

Back to the top