From: bdemsky Date: Sat, 23 Oct 2010 08:41:28 +0000 (+0000) Subject: another bad case X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=efc5b59b2fcfa6c691da982451fa5d1d4e49bb3a;p=IRC.git another bad case --- diff --git a/Robust/src/Tests/rcr/test.java b/Robust/src/Tests/rcr/test.java index f546912b..9e816e81 100644 --- a/Robust/src/Tests/rcr/test.java +++ b/Robust/src/Tests/rcr/test.java @@ -1,24 +1,24 @@ public class test { - int f; + foo f; public test() {} public static void main(String xz[]) { test[] r=new test[10]; for(int i=0;i<10;i++) { - r[i]=new test();r[i].f=0; + r[i]=new test();r[i].f=new foo(); } for (int z=0;z<100000;z++) { for (int i=0;i<10;i++) { test x=r[i]; sese foo { - int t=x.f; - x.f=t+1; + int t=x.f.x; + x.f.x=t+1; } } } for(int i=0;i<10;i++) - System.out.println(r[i].f); + System.out.println(r[i].f.x); } }