aboutsummaryrefslogtreecommitdiffstats
path: root/tests/new/subaspects/child/ChildCE.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/new/subaspects/child/ChildCE.java')
-rw-r--r--tests/new/subaspects/child/ChildCE.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/new/subaspects/child/ChildCE.java b/tests/new/subaspects/child/ChildCE.java
index 4a0b8377c..ac0f3694e 100644
--- a/tests/new/subaspects/child/ChildCE.java
+++ b/tests/new/subaspects/child/ChildCE.java
@@ -6,7 +6,7 @@ import parent.ParentCE;
import org.aspectj.testing.*;
-public class ChildCE {
+public class ChildCE implements I {
public static void main (String[] args) {
new Target().run();
Tester.checkAllEvents();
@@ -17,6 +17,10 @@ public class ChildCE {
}
}
+interface I {
+ public pointcut fromInterface(): call(* *(..));
+}
+
class Target {
public void run(){
Tester.event("run");
@@ -24,7 +28,7 @@ class Target {
}
/** @testcase PR#647 concrete aspect unable to access abstract package-private pointcut in parent for overriding */
-aspect ParentChild extends ParentCE {// expect CE here: child does not define "define()" b/c inaccessible
+aspect ParentChild extends ParentCE implements I {// expect CE here: child does not define "define()" b/c inaccessible
protected pointcut define()
: call(public void Target.run());
}