From 92e2a41d3cdf7d3297092ee5d4266577905519b3 Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 11 Jun 2008 22:30:13 +0000 Subject: [PATCH] test and fix for 168982: message on ataspectj nonabstract generic aspect --- tests/bugs161/pr168982/TracingAspect2.java | 17 +++++++++++++++++ .../aspectj/systemtest/ajc161/Ajc161Tests.java | 1 + .../org/aspectj/systemtest/ajc161/ajc161.xml | 6 ++++++ 3 files changed, 24 insertions(+) create mode 100644 tests/bugs161/pr168982/TracingAspect2.java diff --git a/tests/bugs161/pr168982/TracingAspect2.java b/tests/bugs161/pr168982/TracingAspect2.java new file mode 100644 index 000000000..377c5941c --- /dev/null +++ b/tests/bugs161/pr168982/TracingAspect2.java @@ -0,0 +1,17 @@ +package tracing; + +import org.aspectj.lang.JoinPoint; +import org.aspectj.lang.annotation.Aspect; +import org.aspectj.lang.annotation.Before; +import org.aspectj.lang.annotation.Pointcut; + +@Aspect +public class TracingAspect2 { + @Pointcut("execution(* *(..))") + public void traced() {} + + @Before("traced()") + public void log(JoinPoint thisJoinPoint) { + System.out.println("Entering "); + } +} diff --git a/tests/src/org/aspectj/systemtest/ajc161/Ajc161Tests.java b/tests/src/org/aspectj/systemtest/ajc161/Ajc161Tests.java index c5bbb14df..2c4acdadc 100644 --- a/tests/src/org/aspectj/systemtest/ajc161/Ajc161Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc161/Ajc161Tests.java @@ -23,6 +23,7 @@ import org.aspectj.testing.XMLBasedAjcTestCase; public class Ajc161Tests extends org.aspectj.testing.XMLBasedAjcTestCase { // AspectJ1.6.1 + public void testErrorOnNonabstractGenericAtAspectJAspect_pr168982() { runTest("error on non-abstract generic ataspectj aspect");} public void testIgnoringTypeLevelSuppression_pr234933() { runTest("ignoring type level suppress");} public void testDuplicateMethodSignature_pr223226_2() { runTest("duplicate method signature - 2"); } public void testDuplicateMethodSignature_pr223226() { runTest("duplicate method signature"); } diff --git a/tests/src/org/aspectj/systemtest/ajc161/ajc161.xml b/tests/src/org/aspectj/systemtest/ajc161/ajc161.xml index c34a46444..e9f3a52a5 100644 --- a/tests/src/org/aspectj/systemtest/ajc161/ajc161.xml +++ b/tests/src/org/aspectj/systemtest/ajc161/ajc161.xml @@ -3,6 +3,12 @@ + + + + + + -- 2.39.5