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.

Code2.java 250B

12345678910111213141516171819
  1. public aspect Code2 {
  2. static int[] a = new int[]{1,2,3};
  3. static void f(){
  4. new Test(a[0]++);
  5. }
  6. after() returning(Object obj) : call(Test.new(..)) {
  7. }
  8. public static void main(String []argv) {
  9. f();
  10. }
  11. }
  12. class Test {
  13. Test(int i) {}
  14. }