You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by mr...@apache.org on 2008/09/10 23:49:00 UTC
svn commit: r694012 -
/ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java
Author: mriou
Date: Wed Sep 10 14:49:00 2008
New Revision: 694012
URL: http://svn.apache.org/viewvc?rev=694012&view=rev
Log:
Explicit error when assigning an attribute to an endpoint.
Modified:
ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java
Modified: ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java?rev=694012&r1=694011&r2=694012&view=diff
==============================================================================
--- ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java (original)
+++ ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java Wed Sep 10 14:49:00 2008
@@ -446,6 +446,10 @@
}
private void replaceEndpointRefence(PartnerLinkInstance plval, Node rvalue) throws FaultException {
+ if (rvalue.getNodeType() == Node.ATTRIBUTE_NODE)
+ throw new FaultException(getOAsssign().getOwner().constants.qnMismatchedAssignmentFailure,
+ "Can't assign an attribute to an endpoint, you probably want to select the attribute text.");
+
// Eventually wrapping with service-ref element if we've been directly assigned some
// value that isn't wrapped.
if (rvalue.getNodeType() == Node.TEXT_NODE ||