title="pertarget stack overflow getting name of anonymous (Interface) class"
keywords="from-resolved_10rc3">
<compile files="PR573.java">
- <message kind="warning" line="21"/>
</compile>
<run class="PR573"/>
</ajc-test>
title="pertarget stack overflow getting name of anonymous (Object) class"
keywords="from-resolved_10rc3">
<compile files="PR573_1.java">
- <message kind="warning" line="20"/>
</compile>
<run class="PR573_1"/>
</ajc-test>
}
interface Interface { void m(Object o);}
-aspect A pertarget(target(Interface)) { // CW 21 will not match containing aspect
+aspect A pertarget(target(Interface)) { // was a warning in 1.0
public static int num;
A(){ Tester.event("A.init" + num++); }
}
}
}
// different stack overflow when using Object, not Interface
-aspect A pertarget(target(Object) && !target(A)) { // CW 20 will not match containing aspect
+aspect A pertarget(target(Object) && !target(A)) { // was a warning in 1.0
public static int num;
A(){ Tester.event("A.init" + num++); }
}