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.

Foo2.java 537B

1234567891011121314151617181920212223242526
  1. public class Foo2 {
  2. int i=3;
  3. // Need local variable table for this code to be OK and not lose the fact that this/etc are setup from
  4. // instruction 0 to the end of the method
  5. void foo(Bar bar) {
  6. i = 33;
  7. String s = "hello";
  8. try {
  9. String s2 = "hello2";
  10. System.out.println(s2);
  11. } catch (Exception e) {
  12. e.printStackTrace();
  13. }
  14. }
  15. public static void main(String[] args) {
  16. new Foo2().foo(null);
  17. }
  18. }
  19. class Bar {}
  20. aspect FooAspect {
  21. before(): execution(* *(..)) {}
  22. }