bug fixes........but still fails
authoradash <adash>
Tue, 18 Dec 2007 07:57:31 +0000 (07:57 +0000)
committeradash <adash>
Tue, 18 Dec 2007 07:57:31 +0000 (07:57 +0000)
Robust/src/Tests/Atomic4.java

index c4c4c492294e333e0aa3aadb368f9bfc875efec4..e180164c7cbf9f8cb0d20287e32a4b56b732dc2c 100644 (file)
@@ -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() {