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.

DoubledCalls.java 396B

1234567891011121314151617181920
  1. import org.aspectj.testing.Tester;
  2. public class DoubledCalls {
  3. public static void main(String[] args) {
  4. new Runnable() {
  5. public void run() {
  6. new Integer(1).intValue();
  7. }
  8. }.run();
  9. Tester.check(A.calledInteger, "A.calledInteger");
  10. }
  11. }
  12. aspect A {
  13. static boolean calledInteger = false;
  14. /*static*/ before(): call(* Integer.*(..)) {
  15. A.calledInteger = true;
  16. }
  17. }