aboutsummaryrefslogtreecommitdiffstats
path: root/tests/pureJava/test133
diff options
context:
space:
mode:
authoracolyer <acolyer>2004-08-04 12:04:41 +0000
committeracolyer <acolyer>2004-08-04 12:04:41 +0000
commit0f211e17cac9b031ab8d9115f9030b3e65d3927a (patch)
treecabe16f0e367daaa4b28685e09f5b0bcd55bb43d /tests/pureJava/test133
parent9a051d348a240095e56ead5485c2dba8cf6ad4a7 (diff)
downloadaspectj-0f211e17cac9b031ab8d9115f9030b3e65d3927a.tar.gz
aspectj-0f211e17cac9b031ab8d9115f9030b3e65d3927a.zip
Spring cleaning in the test suite. Docs for AjcTestCase and XMLBasedAjcTestCase
added in docs dir.
Diffstat (limited to 'tests/pureJava/test133')
-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";
+ }
+}