import java.util.*; import java.lang.annotation.*; import java.lang.ref.*; interface I { } class A { // error, not compatible with List from supertype List foo() { return null; } } aspect X { List I.foo() { return null; } declare parents: A implements I; }