aboutsummaryrefslogtreecommitdiffstats
path: root/tests/new/DoubledCalls.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/new/DoubledCalls.java')
-rw-r--r--tests/new/DoubledCalls.java20
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;
+ }
+}