diff options
author | aclement <aclement> | 2008-08-22 17:09:16 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-08-22 17:09:16 +0000 |
commit | 8f9ad80b4e0ed4518761c8ab9e81df68cf145c1e (patch) | |
tree | 72b66623207f370e0b6aa4de6b0c83e924bd11ce /tests/bugs162/pr197720/C3.java | |
parent | 2473e588ca5e55c3c703d6a67f33e1f99283ff45 (diff) | |
download | aspectj-8f9ad80b4e0ed4518761c8ab9e81df68cf145c1e.tar.gz aspectj-8f9ad80b4e0ed4518761c8ab9e81df68cf145c1e.zip |
197720: test and fix: annotation matching on parameterized member
Diffstat (limited to 'tests/bugs162/pr197720/C3.java')
-rw-r--r-- | tests/bugs162/pr197720/C3.java | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/tests/bugs162/pr197720/C3.java b/tests/bugs162/pr197720/C3.java new file mode 100644 index 000000000..6d30b3a78 --- /dev/null +++ b/tests/bugs162/pr197720/C3.java @@ -0,0 +1,40 @@ +package test.aspects; + + + +public class C3 { + public void callAMethodC2() { + C1 c1 = new C1(); + c1.aMethod(); // Should be a marker here... + + C2 c2 = new C2(); + c2.aMethod(); // Should be a marker here... + } + + public void innerClassCall() { + InnerClass ic = new InnerClass(); + + ic.foo(); + } + protected class InnerClass { + public void foo() { + C1 c1 = new C1(); + c1.aMethod(); // Should be a marker here... + + C2 c2 = new C2(); + c2.aMethod(); // Should be a marker here... + } + } + + public static void main(String [] args) { + C1 c1 = new C1(); + + c1.aMethod(); // Should be a marker here... + c1.callAMethod(); + + C3 c2 = new C3(); + + c2.callAMethodC2(); + c2.innerClassCall(); + } +} |