You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ExecutionCflow.java 409B

12345678910111213141516171819202122
  1. import org.aspectj.testing.Tester;
  2. import java.util.*;
  3. /** @testcase PR#903 cflow of execution */
  4. public class ExecutionCflow {
  5. static int field;
  6. public static void main(String[] args) {
  7. field = 0;
  8. Tester.expectEvent("before");
  9. Tester.checkAllEvents();
  10. }
  11. }
  12. aspect A {
  13. before() : cflow(execution(static void main(String[])))
  14. && set(int field) {
  15. Tester.event("before");
  16. }
  17. }