--- /dev/null
+/**
+ *
+ */
+package none;
+
+/**
+ * @author Dawid Pytel
+ *
+ */
+public aspect ConcreteAspect extends GenericAspect<String> {
+
+}
--- /dev/null
+/**
+ *
+ */
+package none;
+
+/**
+ * @author Dawid Pytel
+ *
+ */
+public abstract aspect GenericAspect<T> {
+
+ interface SomeInterface {
+ }
+
+ pointcut SomeConstructor(SomeInterface var) : execution(* SomeInterface(..)) && this(var);
+}
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");
}
<!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"/>