diff options
Diffstat (limited to 'tests/new/DoubledCalls.java')
-rw-r--r-- | tests/new/DoubledCalls.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/new/DoubledCalls.java b/tests/new/DoubledCalls.java new file mode 100644 index 000000000..3757f1d86 --- /dev/null +++ b/tests/new/DoubledCalls.java @@ -0,0 +1,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; + } +} |