import java.util.*; public aspect CodeFour { static final class FinalSet extends HashSet {} before(): execution(* *(..)) && args(List) {} public void m(FinalSet ss) { // List l = (List)ss; // cannot write this (FinalSet is final) so pointcut should not match } }