aboutsummaryrefslogtreecommitdiffstats
path: root/tests/new/DoubledCalls.java
blob: 3757f1d865d6620d6a210ea06ca3554086fda37d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import org.aspectj.testing.Tester;

public class DoubledCalls {
    public static void main(String[] args) {
	new Runnable() {
		public void run() {
		    new Integer(1).intValue();
		}
	    }.run();
	Tester.check(A.calledInteger, "A.calledInteger");
    }
}

aspect A {
    static boolean calledInteger = false;

    /*static*/ before(): call(* Integer.*(..)) {
	A.calledInteger = true;
    }
}