diff options
Diffstat (limited to 'tests/bugs162/pr197720/C2.java')
-rw-r--r-- | tests/bugs162/pr197720/C2.java | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/bugs162/pr197720/C2.java b/tests/bugs162/pr197720/C2.java new file mode 100644 index 000000000..c1673fbbb --- /dev/null +++ b/tests/bugs162/pr197720/C2.java @@ -0,0 +1,34 @@ +package test.aspects; + + + +public class C2 extends C1<String> { + public void callAMethodC2() { + aMethod(); // Should be a marker here... + } + + public void innerClassCall() { + InnerClass ic = new InnerClass(); + + ic.foo(); + } + protected class InnerClass { + public void foo() { + aMethod(); // Should be a marker here... + } + } + + public static void main(String [] args) { + C1 c1 = new C1(); + + c1.callAMethod(); + + C2 c2 = new C2(); + + c2.aMethod(); // Should be a marker here... + c2.callAMethod(); + c2.callAMethodC2(); + c2.innerClassCall(); + } + +} |