--- /dev/null
+/**
+ * Helper interface.
+ */
+interface Interface{
+ boolean methodToBeImplemented();
+}
+
+/**
+ * Exposes the ajc$this_ is never read warning.
+ */
+public aspect pr195090 {
+ public boolean Interface.methodToBeImplemented() {
+ return returnTrue();
+ }
+
+ public static boolean returnTrue() {
+ return true;
+ }
+}
public class Ajc164Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
+ public void testAjcThisNotRead() {
+ runTest("ajcthis not read");
+ }
+
public void testRecursiveCflow() {
runTest("recursive cflow");
}
- //public void testAopConfig1() {
- // runTest("aop config - 1");
- //}
+ // public void testAopConfig1() {
+ // runTest("aop config - 1");
+ // }
public void testAnnoDecprecedence_pr256779() {
runTest("anno decprecedence");
</compile>
</ajc-test>
+ <ajc-test dir="bugs164" title="ajcthis not read">
+ <compile files="pr195090.java" options="-1.5 -warn:+unusedArgument">
+ </compile>
+ </ajc-test>
+
<ajc-test dir="bugs164/pr256779" title="anno decprecedence">
<compile files="ThisAspect.java OtherAspect.java" options="-1.5"/>
<run class="com.ThisAspect" ltw="aop.xml"/>