From ba42a09551519a4b611ab06edb161ecb0c629f53 Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 21 Feb 2006 15:55:33 +0000 Subject: test and fix for 128237 from Helen --- tests/bugs151/pr128237.java | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 tests/bugs151/pr128237.java (limited to 'tests/bugs151') diff --git a/tests/bugs151/pr128237.java b/tests/bugs151/pr128237.java new file mode 100644 index 000000000..93af416c8 --- /dev/null +++ b/tests/bugs151/pr128237.java @@ -0,0 +1,29 @@ +import org.aspectj.lang.JoinPoint; +import org.aspectj.lang.annotation.Aspect; +import org.aspectj.lang.annotation.Before; +import org.aspectj.lang.annotation.Pointcut; + +@Aspect +class AbstractTracer +{ + + @Pointcut("(execution(public * Foo.anotherMethod*(..)) || execution(public * Foo.methodA(..))) && this(obj)") + protected void methodExec(Object obj){}; + + @Before("methodExec(obj)") + public void beforeMethodExec(JoinPoint thisJoinPoint, Object obj) { + System.out.println("Before " + thisJoinPoint.getSignature().toString()); + } + +} + + +class Foo { + + public void methodA() { + } + + public void anotherMethod() { + } + +} -- cgit v1.2.3