summaryrefslogtreecommitdiffstats
path: root/tests/features151/newarrayjoinpoint/Three.java
blob: 93c96b88c0ad1abfd80e809310de1a134393c808 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// incorrect signature
public class Three {
  public static void main(String []argv) {
    Integer[] Is = new Integer[5];
  }
}

aspect X {
  before(): execution(Integer.new(..)) { } // no match, it's execution
  before(): call(Integer.new(..)) { } // no match, it's an integer array
  before(): execution(Integer[].new(..)) { } // no match, no execution jp 
  before(): call(Integer[].new()) { } // no match, the call takes an int
}