From dcf1ec31bb07a3e206d8d53f4629848d546e7d65 Mon Sep 17 00:00:00 2001 From: adash Date: Sat, 4 Nov 2006 00:42:35 +0000 Subject: [PATCH] Bug in TaskExample.java --- Robust/src/Tests/TaskExample.java | 9 +++++++++ 1 file changed, 9 insertions(+) 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 */ -- 2.34.1