diff options
author | aclement <aclement> | 2008-11-02 19:58:10 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-11-02 19:58:10 +0000 |
commit | fb630fa62b6654767dcdef3919105a89f9becdd3 (patch) | |
tree | 502e3a9f4aef38813e8998219dccaa247bd7d7de /tests/bugs163/pr253109 | |
parent | 44bef3e41af9839f1be28a80e53b7014c8e76133 (diff) | |
download | aspectj-fb630fa62b6654767dcdef3919105a89f9becdd3.tar.gz aspectj-fb630fa62b6654767dcdef3919105a89f9becdd3.zip |
253109: tests
Diffstat (limited to 'tests/bugs163/pr253109')
-rw-r--r-- | tests/bugs163/pr253109/CodeOne.java | 16 | ||||
-rw-r--r-- | tests/bugs163/pr253109/CodeTwo.java | 13 |
2 files changed, 29 insertions, 0 deletions
diff --git a/tests/bugs163/pr253109/CodeOne.java b/tests/bugs163/pr253109/CodeOne.java new file mode 100644 index 000000000..0f73cac0d --- /dev/null +++ b/tests/bugs163/pr253109/CodeOne.java @@ -0,0 +1,16 @@ +import java.util.*; + +public aspect CodeOne { + before(): execution(* CodeOne.*(..)) && args(List<Number>) {} + before(): execution(* CodeOne.*(..)) && args(List<Integer>) {} + + void m(List<Integer> li) {} + + public void callm() { + List<Number> ln = new ArrayList<Number>(); + List<Integer> li = new ArrayList<Integer>(); + // m(ln);//not allowed + m(li); + } + +} diff --git a/tests/bugs163/pr253109/CodeTwo.java b/tests/bugs163/pr253109/CodeTwo.java new file mode 100644 index 000000000..ea5a3026b --- /dev/null +++ b/tests/bugs163/pr253109/CodeTwo.java @@ -0,0 +1,13 @@ +import java.util.*; + +public aspect CodeTwo { + before(): execution(* CodeTwo.*(..)) && args(List<? extends Number>) {} + + void m(List<Integer> li) {} + + public void callm() { + List<? extends Number> lqn = new ArrayList<Number>(); + // m(lqn); + } + +} |