aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs152
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs152')
-rw-r--r--tests/bugs152/pr147845/GenericAspectHierarchy.aj30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/bugs152/pr147845/GenericAspectHierarchy.aj b/tests/bugs152/pr147845/GenericAspectHierarchy.aj
new file mode 100644
index 000000000..b9c483105
--- /dev/null
+++ b/tests/bugs152/pr147845/GenericAspectHierarchy.aj
@@ -0,0 +1,30 @@
+interface MyBase { void foo(); };
+interface MyMarker extends MyBase { void bar(); }
+
+abstract aspect Base<A extends MyBase> {
+
+ pointcut somePC() : execution(* A.*(..));
+
+ declare warning : somePC() : "a match";
+
+}
+
+abstract aspect Middle<B extends MyBase> extends Base<B> {}
+
+aspect Sub extends Middle<MyMarker> {}
+
+
+class C1 implements MyBase {
+
+ public void foo() {}
+
+}
+
+class C2 implements MyMarker {
+
+ public void foo() {} // CW L 25
+
+ public void bar() {} // CW L 27
+
+
+} \ No newline at end of file