summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoraclement <aclement>2008-06-11 22:30:13 +0000
committeraclement <aclement>2008-06-11 22:30:13 +0000
commit92e2a41d3cdf7d3297092ee5d4266577905519b3 (patch)
tree05bd9ae648f6767750818803e571a617dc55cee5 /tests
parentbc04401627101ce037a5e90852e36baacdab2873 (diff)
downloadaspectj-92e2a41d3cdf7d3297092ee5d4266577905519b3.tar.gz
aspectj-92e2a41d3cdf7d3297092ee5d4266577905519b3.zip
test and fix for 168982: message on ataspectj nonabstract generic aspect
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs161/pr168982/TracingAspect2.java17
-rw-r--r--tests/src/org/aspectj/systemtest/ajc161/Ajc161Tests.java1
-rw-r--r--tests/src/org/aspectj/systemtest/ajc161/ajc161.xml6
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>