Browse Source

253109: testcode

tags/V1_6_3rc1
aclement 15 years ago
parent
commit
377ed8f4b1
1 changed files with 13 additions and 0 deletions
  1. 13
    0
      tests/bugs163/pr253109/CodeThree.java

+ 13
- 0
tests/bugs163/pr253109/CodeThree.java View File

@@ -0,0 +1,13 @@
import java.util.*;

public aspect CodeThree {
before(): execution(* CodeThree.*(..)) && args(List<Integer>) {} // yes
before(): execution(* CodeThree.*(..)) && args(ArrayList<Integer>) {} // yes - runtime check
before(): execution(* CodeThree.*(..)) && args(List<Number>) {} // no
before(): execution(* CodeThree.*(..)) && args(ArrayList<Number>) {} // no
before(): execution(* CodeThree.*(..)) && args(List<? extends Number>) {} // yes
before(): execution(* CodeThree.*(..)) && args(ArrayList<? extends Number>) {} // yes - runtime check

void m(List<Integer> li) {}

}

Loading…
Cancel
Save