You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by va...@apache.org on 2011/05/04 14:12:06 UTC

svn commit: r1099426 - /ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/elang/xpath20/runtime/JaxpFunctionResolver.java

Author: vanto
Date: Wed May  4 12:12:06 2011
New Revision: 1099426

URL: http://svn.apache.org/viewvc?rev=1099426&view=rev
Log:
small bugfix.

Modified:
    ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/elang/xpath20/runtime/JaxpFunctionResolver.java

Modified: ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/elang/xpath20/runtime/JaxpFunctionResolver.java
URL: http://svn.apache.org/viewvc/ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/elang/xpath20/runtime/JaxpFunctionResolver.java?rev=1099426&r1=1099425&r2=1099426&view=diff
==============================================================================
--- ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/elang/xpath20/runtime/JaxpFunctionResolver.java (original)
+++ ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/elang/xpath20/runtime/JaxpFunctionResolver.java Wed May  4 12:12:06 2011
@@ -558,7 +558,7 @@ public class JaxpFunctionResolver implem
                     childNodes = new ArrayList<Node>();
                     childNodes.add(childElmt);
                 } else {
-                    throw new XPathFunctionException("Unexpected argument type: "+args.get(0).getClass());
+                    throw new XPathFunctionException("Unexpected argument type: "+args.get(2).getClass());
                 }
             } catch (IllegalArgumentException e) {
                 throw new XPathFunctionException(
@@ -781,7 +781,7 @@ public class JaxpFunctionResolver implem
                     siblingNodes = new ArrayList<Node>();
                     siblingNodes.add(childElmt);
                 } else {
-                    throw new XPathFunctionException("Unexpected argument type: "+args.get(0).getClass());
+                    throw new XPathFunctionException("Unexpected argument type: "+args.get(1).getClass());
                 }
             } catch (IllegalArgumentException e) {
                 throw new XPathFunctionException(
@@ -840,7 +840,7 @@ public class JaxpFunctionResolver implem
                     siblingNodes = new ArrayList<Node>();
                     siblingNodes.add(childElmt);
                 } else {
-                    throw new XPathFunctionException("Unexpected argument type: "+args.get(0).getClass());
+                    throw new XPathFunctionException("Unexpected argument type: "+args.get(1).getClass());
                 }
             } catch (IllegalArgumentException e) {
                 throw new XPathFunctionException(