--- /dev/null
+public aspect Asp2 {
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ before(): execution(* fo*(..)) {}
+}
--- /dev/null
+package pkg;
+
+public aspect Asp {
+
+ before(): execution(* fo*(..)) {}
+}
--- /dev/null
+public class C {
+ public static void main(String []argv) {
+ new C().foo();
+ }
+
+ public void foo() {}
+}
--- /dev/null
+package p;
+
+import java.util.ArrayList;
+
+public class ErrorAspect {
+ ArrayList arr = new ArrayList() {
+ public boolean add(Object o) {
+ doNothing();
+ super.add(o);
+ };
+ }
+}
+
--- /dev/null
+package p;
+
+aspect GetInfo {
+ declare warning : set(int Demo.x) : "field set";
+ declare warning : set(int Demo.x) : "field set";
+ declare parents : Demo implements Serializable;
+}
--- /dev/null
+package spacewar;
+
+ class C {
+
+ public void m() {
+ foo(12);
+ foo(14);
+ }
+
+ public void foo(int i) {}
+}
+
+aspect X {
+ before(): call(* foo(..)) {}
+}
+