aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs161
diff options
context:
space:
mode:
authoraclement <aclement>2008-06-11 18:24:26 +0000
committeraclement <aclement>2008-06-11 18:24:26 +0000
commita0cf51dde7d399fbf7774df4709c19b8a7e95b4a (patch)
tree0d46c0fae3b41c462b7568d5372dbff3b14fb6cb /tests/bugs161
parent3b13e9b46e82001b285bbc61634ec1c446e84343 (diff)
downloadaspectj-a0cf51dde7d399fbf7774df4709c19b8a7e95b4a.tar.gz
aspectj-a0cf51dde7d399fbf7774df4709c19b8a7e95b4a.zip
197719: test and fix: advising protected method calls from inner classes
Diffstat (limited to 'tests/bugs161')
-rw-r--r--tests/bugs161/pr197719/A.java5
-rw-r--r--tests/bugs161/pr197719/B.java19
-rw-r--r--tests/bugs161/pr197719/X.java3
3 files changed, 27 insertions, 0 deletions
diff --git a/tests/bugs161/pr197719/A.java b/tests/bugs161/pr197719/A.java
new file mode 100644
index 000000000..bfb5dd9d1
--- /dev/null
+++ b/tests/bugs161/pr197719/A.java
@@ -0,0 +1,5 @@
+package a;
+
+public class A {
+ protected void m() { System.out.println("m() running");}
+}
diff --git a/tests/bugs161/pr197719/B.java b/tests/bugs161/pr197719/B.java
new file mode 100644
index 000000000..cb5e2ffcf
--- /dev/null
+++ b/tests/bugs161/pr197719/B.java
@@ -0,0 +1,19 @@
+package b;
+
+public class B extends a.A {
+ protected class Inner {
+ public void foo() {
+ System.out.println("calling m()");
+ m();
+ }
+ }
+
+ public static void main(String []argv) {
+ B b = new B();
+ b.run();
+ }
+
+ public void run() {
+ new Inner().foo();
+ }
+}
diff --git a/tests/bugs161/pr197719/X.java b/tests/bugs161/pr197719/X.java
new file mode 100644
index 000000000..2dce7a180
--- /dev/null
+++ b/tests/bugs161/pr197719/X.java
@@ -0,0 +1,3 @@
+public aspect X {
+ void around(): call(* m()) { System.out.println("advice running"); proceed();}
+}