diff options
author | aclement <aclement> | 2006-01-25 10:43:34 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-01-25 10:43:34 +0000 |
commit | 244a1c78371fab02a6b2a9937fcc27e6cf1bc61d (patch) | |
tree | d21366e9a8fe2413a517d56aa6b78f0121c8dfa8 /tests/bugs151 | |
parent | 8ce00642b4c8b1bb0233125e64f798283ebb3e90 (diff) | |
download | aspectj-244a1c78371fab02a6b2a9937fcc27e6cf1bc61d.tar.gz aspectj-244a1c78371fab02a6b2a9937fcc27e6cf1bc61d.zip |
test and fix for 125080 - mixing numbers of types in a generic type hierarchy
Diffstat (limited to 'tests/bugs151')
-rw-r--r-- | tests/bugs151/pr125080/Test.java | 11 | ||||
-rw-r--r-- | tests/bugs151/pr125080/Test2.java | 20 |
2 files changed, 31 insertions, 0 deletions
diff --git a/tests/bugs151/pr125080/Test.java b/tests/bugs151/pr125080/Test.java new file mode 100644 index 000000000..2beaa138b --- /dev/null +++ b/tests/bugs151/pr125080/Test.java @@ -0,0 +1,11 @@ +import java.util.*; + +interface AspectInterface<T, S> { } + +abstract aspect AbstractAspect<T> implements AspectInterface<T, Integer> {} + +aspect ConcreteAspect extends AbstractAspect<String> { + + public static void main(String []argv) { + } +} diff --git a/tests/bugs151/pr125080/Test2.java b/tests/bugs151/pr125080/Test2.java new file mode 100644 index 000000000..a6a02bdaf --- /dev/null +++ b/tests/bugs151/pr125080/Test2.java @@ -0,0 +1,20 @@ +import java.util.*; + +abstract aspect AbstractAspect<T> implements AspectInterface<T, Integer> {} + +interface AspectInterface<T, S extends Number> { } + +aspect ConcreteAspect extends AbstractAspect<Student> { + public static void main(String []argv) { + } +} + +class Student { + private String name; + + public Student(String n) { + name = n; + } + + public String toString() { return name; } +} |