--- /dev/null
+
+public class A {
+ static Object s;
+ public static void main(String[] args) {
+ String t = "Hello, World!";
+ t.toString();
+ if (s != t) throw new Error();
+ }
+ static abstract aspect GenericAspect<T> {
+ abstract pointcut checkpoint(T t);
+
+ // advice declaration causes error
+ after(T t): checkpoint(t) { s = t;}
+ }
+ static aspect AAA extends GenericAspect<String>{
+ pointcut checkpoint(String s) : target(s) &&
+ call(String String.toString());
+ }
+}
import org.aspectj.testing.XMLBasedAjcTestCase;
public class Ajc151Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
-
+
+ public void testGenericAdviceParameters_pr123553() { runTest("generic advice parameters");}
public void testMemberTypesInGenericTypes_pr122458() { runTest("member types in generic types");}
public void testMemberTypesInGenericTypes_pr122458_2() { runTest("member types in generic types - 2");}
public void testNPEOnDeclareAnnotation_pr123695() { runTest("Internal nullptr exception with complex declare annotation");}
<!-- AspectJ v1.5.1 Tests -->
<suite>
+ <ajc-test dir="bugs151/pr123553" title="generic advice parameters">
+ <compile files="A.java" options="-1.5"/>
+ <run class="A"/>
+ </ajc-test>
+
<ajc-test dir="bugs151" title="member types in generic types">
<compile files="pr122458.aj" options="-1.5 -emacssym"/>
</ajc-test>