From 550d423b0319505be030577c3511594bbaba4bac Mon Sep 17 00:00:00 2001 From: spikeuci Date: Wed, 9 Nov 2011 02:16:25 +0000 Subject: [PATCH] Updating the test case files --- Robust/src/Tests/innerclass/inner.java | 32 +++++++++++++------------- Robust/src/Tests/innerclass/makefile | 2 +- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/Robust/src/Tests/innerclass/inner.java b/Robust/src/Tests/innerclass/inner.java index ba4a54ea..29a7341e 100644 --- a/Robust/src/Tests/innerclass/inner.java +++ b/Robust/src/Tests/innerclass/inner.java @@ -1,9 +1,9 @@ -public class inner{ +public class inner extends innerp { int outer; int f2; public inner() { - outer=31; + //super.outer=31; } public static void main(String x[]) { @@ -13,30 +13,30 @@ public class inner{ public void dotest() { outer=35; - inner ij = new inner(); - t tmp=ij. new t(); - //t.f2 = 3; + t tmp=new t(); tmp.print(); } - public inner createOne() { - return new inner(); - } - - public class t { - // int outer; - int f3 = 23; + public class t extends innerpt { + int outer; + int f3; public t() { - //this.outer=4; - //f2=3; + this.outer = 4; + f1=2; + f2=3; f3=4; } public void print() { - //should print 4 0 3 + //should print 4 0 35 System.out.println(outer); - // System.out.println(this$0.outer); + //System.out.println(super.outer); + System.out.println(inner.this.outer); + //System.out.println(inner.super.outer); + System.out.println(f1); + System.out.println(f2); + System.out.println(f3); } } diff --git a/Robust/src/Tests/innerclass/makefile b/Robust/src/Tests/innerclass/makefile index ad232de1..0b7a1483 100644 --- a/Robust/src/Tests/innerclass/makefile +++ b/Robust/src/Tests/innerclass/makefile @@ -1,6 +1,6 @@ PROGRAM=inner -SOURCE_FILES=inner.java +SOURCE_FILES=innerp.java innerpt.java inner.java BUILDSCRIPT=~/research/Robust/src/buildscript BSFLAGS= -64bit -joptimize -mainclass inner -- 2.34.1