diff options
author | aclement <aclement> | 2006-07-10 14:54:08 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-07-10 14:54:08 +0000 |
commit | 76097cb5054c43c7f1f5ea28aa3183d71eba2573 (patch) | |
tree | c746677ca5f5cf7acecc816062747d696a45b6a8 /tests/bugs153 | |
parent | dad5fe881c44e475069d31a00e06da3335e3887e (diff) | |
download | aspectj-76097cb5054c43c7f1f5ea28aa3183d71eba2573.tar.gz aspectj-76097cb5054c43c7f1f5ea28aa3183d71eba2573.zip |
testcode for 150095: generics binary decp
Diffstat (limited to 'tests/bugs153')
-rw-r--r-- | tests/bugs153/pr150095/Foo.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/bugs153/pr150095/Foo.java b/tests/bugs153/pr150095/Foo.java new file mode 100644 index 000000000..a0c14f73b --- /dev/null +++ b/tests/bugs153/pr150095/Foo.java @@ -0,0 +1,28 @@ +import java.util.*; + +interface I extends Collection { } + +class B implements I { + + public Object[] toArray(Object[] os) { return os; } + + public boolean add(Object o) { return false; } + public boolean addAll(Collection c) { return false; } + public void clear() { } + public boolean contains(Object o) { return false; } + public boolean containsAll(Collection c) { return false; } + public boolean isEmpty() { return false; } + public Iterator iterator() { return null; } + public boolean remove(Object o) { return false; } + public boolean removeAll(Collection c) { return false; } + public boolean retainAll(Collection c) { return false; } + public int size() { return 0; } + public Object[] toArray() { return null; } +} + +class C { } + +aspect X { + declare parents: C extends B; +} + |