diff options
author | aclement <aclement> | 2008-04-24 04:07:25 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-04-24 04:07:25 +0000 |
commit | 3189369baa42e562541ba2c3f4c2f6619f1b532f (patch) | |
tree | c41795f76a9c0f8f9413297bf29b7ebc03786fc2 /tests/bugs161/pr226567 | |
parent | e08d3dede2af8b0aafe460f17a40912e621f4397 (diff) | |
download | aspectj-3189369baa42e562541ba2c3f4c2f6619f1b532f.tar.gz aspectj-3189369baa42e562541ba2c3f4c2f6619f1b532f.zip |
226567: test and fix - generic return types and overridden methods
Diffstat (limited to 'tests/bugs161/pr226567')
-rw-r--r-- | tests/bugs161/pr226567/Bar.java | 9 | ||||
-rw-r--r-- | tests/bugs161/pr226567/BarAspect.aj | 9 | ||||
-rw-r--r-- | tests/bugs161/pr226567/Foo.java | 11 | ||||
-rw-r--r-- | tests/bugs161/pr226567/Main.java | 12 |
4 files changed, 41 insertions, 0 deletions
diff --git a/tests/bugs161/pr226567/Bar.java b/tests/bugs161/pr226567/Bar.java new file mode 100644 index 000000000..c4a0316e1 --- /dev/null +++ b/tests/bugs161/pr226567/Bar.java @@ -0,0 +1,9 @@ +package b; + +import java.util.Collection; + + +public interface Bar { + + public Collection<Foo> getFoos(); +}
\ No newline at end of file diff --git a/tests/bugs161/pr226567/BarAspect.aj b/tests/bugs161/pr226567/BarAspect.aj new file mode 100644 index 000000000..1c62a4867 --- /dev/null +++ b/tests/bugs161/pr226567/BarAspect.aj @@ -0,0 +1,9 @@ +package a; + +import b.Bar; +import b.Foo; + +public aspect BarAspect { + + declare parents : Foo implements Bar; +}
\ No newline at end of file diff --git a/tests/bugs161/pr226567/Foo.java b/tests/bugs161/pr226567/Foo.java new file mode 100644 index 000000000..db8076aab --- /dev/null +++ b/tests/bugs161/pr226567/Foo.java @@ -0,0 +1,11 @@ +package b; + +import java.util.ArrayList; +import java.util.Collection; + +public class Foo { + + public Collection<Foo> getFoos() { + return new ArrayList<Foo>() {{ add(new Foo()); }}; + } +}
\ No newline at end of file diff --git a/tests/bugs161/pr226567/Main.java b/tests/bugs161/pr226567/Main.java new file mode 100644 index 000000000..51eab3381 --- /dev/null +++ b/tests/bugs161/pr226567/Main.java @@ -0,0 +1,12 @@ +package c; + +import b.Bar; +import b.Foo; + +public class Main { + + public static void main(String [] args) { + Foo foo = new Foo(); + System.out.println(foo instanceof Bar); + } +}
\ No newline at end of file |