diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bugs161/pr168982/TracingAspect2.java | 17 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc161/Ajc161Tests.java | 1 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc161/ajc161.xml | 6 |
3 files changed, 24 insertions, 0 deletions
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<T> { + @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 @@ <!-- AspectJ v1.6.1 Tests --> <suite> + <ajc-test dir="bugs161/pr168982" title="error on non-abstract generic ataspectj aspect"> + <compile files="TracingAspect2.java" options="-1.5"> + <message kind="error" line="9"/> + </compile> + </ajc-test> + <ajc-test dir="bugs161/pr234933" title="ignoring type level suppress"> <compile files="Foobar.java" options="-1.5 -Xlint:error"/> </ajc-test> |