[Swift-commit] r3245 - trunk/src/org/griphyn/vdl/karajan/lib
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Wed Feb 17 16:02:14 CST 2010
Author: hategan
Date: 2010-02-17 16:02:14 -0600 (Wed, 17 Feb 2010)
New Revision: 3245
Modified:
trunk/src/org/griphyn/vdl/karajan/lib/SetFieldValue.java
Log:
if the value of an array item is set then mark it such that iterations waiting on it can continue (it is a bit surprising that this wasn't properly working; or maybe I'm missing something)
Modified: trunk/src/org/griphyn/vdl/karajan/lib/SetFieldValue.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/lib/SetFieldValue.java 2010-02-17 22:00:19 UTC (rev 3244)
+++ trunk/src/org/griphyn/vdl/karajan/lib/SetFieldValue.java 2010-02-17 22:02:14 UTC (rev 3245)
@@ -29,7 +29,7 @@
public Object function(VariableStack stack) throws ExecutionException {
DSHandle var = (DSHandle) PA_VAR.getValue(stack);
try {
- Path path = parsePath(OA_PATH.getValue(stack), stack);
+ Path path = parsePath(OA_PATH.getValue(stack), stack);
DSHandle leaf = var.getField(path);
DSHandle value = (DSHandle) PA_VALUE.getValue(stack);
if (logger.isInfoEnabled()) {
@@ -47,6 +47,9 @@
}
deepCopy(leaf, value, stack);
}
+ if (var.getParent().getType().isArray()) {
+ markAsAvailable(stack, leaf.getParent(), leaf.getPathFromRoot().getLast());
+ }
}
return null;
}
More information about the Swift-commit
mailing list