ode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mr...@apache.org
Subject svn commit: r694012 - /ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java
Date Wed, 10 Sep 2008 21:49:00 GMT
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 ||



Mime
View raw message