Bug in TaskExample.java
authoradash <adash>
Sat, 4 Nov 2006 00:42:35 +0000 (00:42 +0000)
committeradash <adash>
Sat, 4 Nov 2006 00:42:35 +0000 (00:42 +0000)
Robust/src/Tests/TaskExample.java

index 27ff89c4fd0f0e975762abc231e831da0a1bd6fa..6629a4a759037fc9956adc8dc938bc6a8e1d1b73 100644 (file)
@@ -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 */