import java.util.*; import java.lang.annotation.*; import java.lang.ref.*; interface I { } class A { List foo() { return null; } } aspect X { List I.foo() { return null; } // should be ok - A implements I declare parents: A implements I; }