1
0
şunun yansıması https://github.com/eclipse-aspectj/aspectj.git eşitlendi 2024-08-26 17:58:43 +02:00
org.aspectj/tests/new/ScopesAndFields_PR191.java
2002-12-16 18:51:06 +00:00

31 satır
702 B
Java

import org.aspectj.testing.Tester;
public class ScopesAndFields_PR191 {
public static void main(String[] args) {
new ScopesAndFields_PR191().realMain(args);
}
public void realMain(String[] args) {
C c = new C();
c.a();
Tester.checkEqual(c.c(), "C");
Tester.checkEqual(c.c, "c");
Tester.checkEqual(c.t(), "c");
}
}
class C {
public String c = "c";
public String c() {
Object c = "C";
return c+"";
}
public String t() {
Object c = "C";
return this.c;
}
public void a() {
String c = "C";
Tester.checkEqual(c+"", "C");
Tester.checkEqual(this.c, "c");
}
}