aboutsummaryrefslogtreecommitdiffstats
path: root/tests/pureJava/test133/Driver.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pureJava/test133/Driver.java')
-rw-r--r--tests/pureJava/test133/Driver.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/pureJava/test133/Driver.java b/tests/pureJava/test133/Driver.java
new file mode 100644
index 000000000..1f1b1f7ab
--- /dev/null
+++ b/tests/pureJava/test133/Driver.java
@@ -0,0 +1,24 @@
+// PUREJAVA: Corrrect supercall lookup for method().name()
+import org.aspectj.testing.Tester;
+
+public class Driver {
+ private Foo foo = new Foo();
+
+ public static void main(String[] args) { test(); }
+
+ public Foo getFoo() { return foo; }
+
+ public String bar() {
+ return getFoo().bar();
+ }
+
+ public static void test() {
+ Tester.checkEqual(new Driver().bar(), "Foo", "getFoo().bar()");
+ }
+}
+
+class Foo {
+ public String bar() {
+ return "Foo";
+ }
+}