[Swift-commit] r2317 - trunk/src/org/griphyn/vdl/karajan/lib

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Fri Oct 24 02:16:01 CDT 2008


Author: benc
Date: 2008-10-24 02:15:59 -0500 (Fri, 24 Oct 2008)
New Revision: 2317

Modified:
   trunk/src/org/griphyn/vdl/karajan/lib/SetFieldValue.java
Log:
runtime warning when using array assignment outside of a variable initialization; this does not work.

Modified: trunk/src/org/griphyn/vdl/karajan/lib/SetFieldValue.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/lib/SetFieldValue.java	2008-10-23 19:55:14 UTC (rev 2316)
+++ trunk/src/org/griphyn/vdl/karajan/lib/SetFieldValue.java	2008-10-24 07:15:59 UTC (rev 2317)
@@ -4,6 +4,7 @@
 package org.griphyn.vdl.karajan.lib;
 
 import org.apache.log4j.Logger;
+import org.griphyn.vdl.karajan.PairIterator;
 import org.globus.cog.karajan.arguments.Arg;
 import org.globus.cog.karajan.stack.VariableStack;
 import org.globus.cog.karajan.workflow.ExecutionException;
@@ -35,6 +36,10 @@
 // for type conversion here; but would be useful to have
 // type checking.
 				// leaf.setValue(internalValue(leaf.getType(), value));
+				if( (value instanceof DSHandle && ((DSHandle)value).getType().isArray()) || (value instanceof PairIterator)) {
+					logger.warn("Warning: array assignment outside of initialisation does not work correctly.");
+				}
+
 				leaf.setValue(value);
 				closeShallow(stack, leaf);
 			}




More information about the Swift-commit mailing list