import java.util.*; aspect A3 { // declare precedence: A3,A2; public List BaseClass.m(List lz) { return lz; } after(BaseClass c): execution(* run1(..)) && this(c) { List myLs = new ArrayList(); BaseClass bStr = new BaseClass(); List ls2 = bStr.m(myLs); bStr.count++; } }