From: adash Date: Sat, 4 Nov 2006 00:42:35 +0000 (+0000) Subject: Bug in TaskExample.java X-Git-Tag: preEdgeChange~767 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=dcf1ec31bb07a3e206d8d53f4629848d546e7d65;p=IRC.git Bug in TaskExample.java --- diff --git a/Robust/src/Tests/TaskExample.java b/Robust/src/Tests/TaskExample.java index 27ff89c4..6629a4a7 100644 --- a/Robust/src/Tests/TaskExample.java +++ b/Robust/src/Tests/TaskExample.java @@ -14,6 +14,14 @@ class Example { * system to start the computation up */ task Startup(StartupObject s {initialstate}) { + String a = new String("hello\n"); + String b = new String("hello\n"); + System.printString(a); + System.printString(b); + System.printInt(b.hashCode()); + System.printString("\n"); + System.printInt(a.hashCode()); + for(int i=0;i<10;i++) { Example e=new Example() {needoperation}; e.x=i; @@ -22,6 +30,7 @@ task Startup(StartupObject s {initialstate}) { } taskexit(s {!initialstate}); /* Turns initial state flag off, so this task won't refire */ + } /* Fails for x=1 */