1 2 3 4 5 6 7 8 9 10 11 12 13
public class Declares { public void m() { // should be error on this line } } aspect Checker { declare error: execution(* m()): "too short method name"; declare error: execution(* n()): "too short method name"; // no effect //declare warning: exec: "bar"; }