summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs164/pr268689/ConcreteAspect.aj12
-rw-r--r--tests/bugs164/pr268689/GenericAspect.aj16
-rw-r--r--tests/src/org/aspectj/systemtest/ajc164/Ajc164Tests.java4
-rw-r--r--tests/src/org/aspectj/systemtest/ajc164/ajc164.xml6
4 files changed, 38 insertions, 0 deletions
diff --git a/tests/bugs164/pr268689/ConcreteAspect.aj b/tests/bugs164/pr268689/ConcreteAspect.aj
new file mode 100644
index 000000000..10da726d9
--- /dev/null
+++ b/tests/bugs164/pr268689/ConcreteAspect.aj
@@ -0,0 +1,12 @@
+/**
+ *
+ */
+package none;
+
+/**
+ * @author Dawid Pytel
+ *
+ */
+public aspect ConcreteAspect extends GenericAspect<String> {
+
+}
diff --git a/tests/bugs164/pr268689/GenericAspect.aj b/tests/bugs164/pr268689/GenericAspect.aj
new file mode 100644
index 000000000..c102dc328
--- /dev/null
+++ b/tests/bugs164/pr268689/GenericAspect.aj
@@ -0,0 +1,16 @@
+/**
+ *
+ */
+package none;
+
+/**
+ * @author Dawid Pytel
+ *
+ */
+public abstract aspect GenericAspect<T> {
+
+ interface SomeInterface {
+ }
+
+ pointcut SomeConstructor(SomeInterface var) : execution(* SomeInterface(..)) && this(var);
+}
diff --git a/tests/src/org/aspectj/systemtest/ajc164/Ajc164Tests.java b/tests/src/org/aspectj/systemtest/ajc164/Ajc164Tests.java
index 14356587c..1afbf4b42 100644
--- a/tests/src/org/aspectj/systemtest/ajc164/Ajc164Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc164/Ajc164Tests.java
@@ -34,6 +34,10 @@ import org.aspectj.testing.XMLBasedAjcTestCase;
public class Ajc164Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
+ public void testGenericAspectsNpe_pr268689() {
+ runTest("generics aspects npe");
+ }
+
public void testGenericsItdNpe_pr267559() {
runTest("generics and itd npe");
}
diff --git a/tests/src/org/aspectj/systemtest/ajc164/ajc164.xml b/tests/src/org/aspectj/systemtest/ajc164/ajc164.xml
index 373d4b711..ae770bbae 100644
--- a/tests/src/org/aspectj/systemtest/ajc164/ajc164.xml
+++ b/tests/src/org/aspectj/systemtest/ajc164/ajc164.xml
@@ -1,6 +1,12 @@
<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
<suite>
+
+ <ajc-test dir="bugs164/pr268689" title="generics aspects npe">
+ <compile files="GenericAspect.aj ConcreteAspect.aj" options="-1.5">
+ <message kind="error" line="15" text="parameterized types not supported for this and target pointcuts (erasure limitation)"/>
+ </compile>
+ </ajc-test>
<ajc-test dir="bugs164/pr267559" title="generics and itd npe">
<compile files="IMarker.java ClassB.java Aspect.java ClassA.java" options="-1.5"/>