From 1e502f504f2ad333ad5627d8e9d106315c38ecc0 Mon Sep 17 00:00:00 2001 From: jhugunin Date: Fri, 25 Apr 2003 18:11:33 +0000 Subject: [PATCH] fix and tests for Bugzilla Bug 36803 BCException thrown by AspectJ 1.1rc1 --- tests/ajcTests.xml | 6 ++++++ tests/bugs/CflowConcrete.java | 19 +++++++++++++++++++ tests/jimTests.xml | 2 +- .../weaver/patterns/KindedPointcut.java | 1 - .../org/aspectj/weaver/patterns/Pointcut.java | 6 ++++-- .../weaver/patterns/WithinPointcut.java | 2 +- .../weaver/patterns/WithincodePointcut.java | 2 +- 7 files changed, 32 insertions(+), 6 deletions(-) create mode 100644 tests/bugs/CflowConcrete.java diff --git a/tests/ajcTests.xml b/tests/ajcTests.xml index 4f869e5e4..ebaedd66c 100644 --- a/tests/ajcTests.xml +++ b/tests/ajcTests.xml @@ -5872,4 +5872,10 @@ + + + + + diff --git a/tests/bugs/CflowConcrete.java b/tests/bugs/CflowConcrete.java new file mode 100644 index 000000000..16eebeba8 --- /dev/null +++ b/tests/bugs/CflowConcrete.java @@ -0,0 +1,19 @@ +// for Bug#: 31423 +import org.aspectj.testing.Tester; + + +public class CflowConcrete { + public static void main(String[] args) { + } +} + +aspect TestAjc { + pointcut notMySelf(): !within(TestAjc) && !cflow(within(TestAjc)); + + pointcut eachCall(): notMySelf() && call(* *.*(..)); + pointcut eachExecution(): notMySelf() && execution(* *.*(..)) ; + + before(): eachCall() { System.out.println(thisJoinPoint); } + + before(): eachExecution() { System.out.println(thisJoinPoint); } +} diff --git a/tests/jimTests.xml b/tests/jimTests.xml index 61e8777a6..6de1c507c 100644 --- a/tests/jimTests.xml +++ b/tests/jimTests.xml @@ -1,7 +1,7 @@ - +