From 26dc500e5eaf7cc27563c55a6370a9ffd35dd338 Mon Sep 17 00:00:00 2001 From: adash Date: Tue, 18 Dec 2007 07:57:31 +0000 Subject: [PATCH] bug fixes........but still fails --- Robust/src/Tests/Atomic4.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Robust/src/Tests/Atomic4.java b/Robust/src/Tests/Atomic4.java index c4c4c492..e180164c 100644 --- a/Robust/src/Tests/Atomic4.java +++ b/Robust/src/Tests/Atomic4.java @@ -12,6 +12,8 @@ public class Atomic4 extends Thread { Atomic4 at4 = null; atomic { at4 = global new Atomic4(); + at4.team[0] = global new People(); + at4.team[1] = global new People(); age = global new Integer(35); name = global new String("Harry Potter"); at4.team[0].name = name; @@ -57,6 +59,9 @@ public class People { String name; Integer age; + public People() { + } + public People(String name, Integer age) { this.name = name; this.age = age; @@ -75,9 +80,7 @@ public class People { } public int getAge() { - int test = age.intValue(); - //return age.intValue(); - return test; + return age.intValue(); } public boolean isSenior() { -- 2.34.1