diff options
author | aclement <aclement> | 2008-06-11 20:54:26 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-06-11 20:54:26 +0000 |
commit | 5fce948c251d0258e5f5909736cef76712c42009 (patch) | |
tree | e5778111b2930d36862ccf2dbdeb60fc83f85227 /tests/bugs161 | |
parent | 4018fb57e0131b7cf8b70ac1bceb7610a7cb3e55 (diff) | |
download | aspectj-5fce948c251d0258e5f5909736cef76712c42009.tar.gz aspectj-5fce948c251d0258e5f5909736cef76712c42009.zip |
223226: test and fix for NPE and duplicate signature
Diffstat (limited to 'tests/bugs161')
-rw-r--r-- | tests/bugs161/pr223226/AspectX.java | 4 | ||||
-rw-r--r-- | tests/bugs161/pr223226/AspectXMarker.java | 3 | ||||
-rw-r--r-- | tests/bugs161/pr223226/BInterface.java | 2 | ||||
-rw-r--r-- | tests/bugs161/pr223226/Foo.java | 3 | ||||
-rw-r--r-- | tests/bugs161/pr223226/FooInterface.java | 5 | ||||
-rw-r--r-- | tests/bugs161/pr223226/Test.java | 9 |
6 files changed, 26 insertions, 0 deletions
diff --git a/tests/bugs161/pr223226/AspectX.java b/tests/bugs161/pr223226/AspectX.java new file mode 100644 index 000000000..76fa159d9 --- /dev/null +++ b/tests/bugs161/pr223226/AspectX.java @@ -0,0 +1,4 @@ +public aspect AspectX +{ + public A AspectXMarker<A,B>.doSomething(B b) { return null; } +} diff --git a/tests/bugs161/pr223226/AspectXMarker.java b/tests/bugs161/pr223226/AspectXMarker.java new file mode 100644 index 000000000..f880df472 --- /dev/null +++ b/tests/bugs161/pr223226/AspectXMarker.java @@ -0,0 +1,3 @@ +public interface AspectXMarker <A, B extends BInterface<?> > extends +FooInterface<A, B> +{ } diff --git a/tests/bugs161/pr223226/BInterface.java b/tests/bugs161/pr223226/BInterface.java new file mode 100644 index 000000000..790d4967c --- /dev/null +++ b/tests/bugs161/pr223226/BInterface.java @@ -0,0 +1,2 @@ +public interface BInterface<S> { } + diff --git a/tests/bugs161/pr223226/Foo.java b/tests/bugs161/pr223226/Foo.java new file mode 100644 index 000000000..4aaa0fb1a --- /dev/null +++ b/tests/bugs161/pr223226/Foo.java @@ -0,0 +1,3 @@ +public class Foo<B extends BInterface<?>> implements AspectXMarker<Integer, B> +{} + diff --git a/tests/bugs161/pr223226/FooInterface.java b/tests/bugs161/pr223226/FooInterface.java new file mode 100644 index 000000000..e4884ba47 --- /dev/null +++ b/tests/bugs161/pr223226/FooInterface.java @@ -0,0 +1,5 @@ +public interface FooInterface<A,B> +{ + public A doSomething(B transition); +} + diff --git a/tests/bugs161/pr223226/Test.java b/tests/bugs161/pr223226/Test.java new file mode 100644 index 000000000..354916dcb --- /dev/null +++ b/tests/bugs161/pr223226/Test.java @@ -0,0 +1,9 @@ +public class Test +{ + public static void main(String[] args) + { + Foo<BInterface<Integer>> foo = new Foo<BInterface<Integer>>(); + + foo.doSomething(null); + } +} |