aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs/cflowAndJar/TestAspect.aj
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs/cflowAndJar/TestAspect.aj')
-rw-r--r--tests/bugs/cflowAndJar/TestAspect.aj11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/bugs/cflowAndJar/TestAspect.aj b/tests/bugs/cflowAndJar/TestAspect.aj
index a6ed50ae6..78c93e86a 100644
--- a/tests/bugs/cflowAndJar/TestAspect.aj
+++ b/tests/bugs/cflowAndJar/TestAspect.aj
@@ -1,6 +1,15 @@
public aspect TestAspect extends AbstractAspect{
public pointcut directCall():
execution(void Test.doSayHello(..))
- && cflow(execution(void Test.direct(..)))
+ && cflow(execution(void Test.sayHello(..)))
;
+
+ public pointcut badCall():
+ call(void Test.doSayHello(..)) && withincode(void Test.sayHello(..));
+
+ void noteDirectCall() {
+ sawDirectCall = true;
+ }
+
+ public static boolean sawDirectCall = false;
}