aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs160/pr223226
diff options
context:
space:
mode:
authoraclement <aclement>2008-03-19 23:32:58 +0000
committeraclement <aclement>2008-03-19 23:32:58 +0000
commit6629437ab7083aae89792a75e5bbc1ef71fd0a21 (patch)
tree620dd53b315bec05123b31308654052e559c2f1c /tests/bugs160/pr223226
parent382db453417023bddc42ab14fb5fac4da45b7362 (diff)
downloadaspectj-6629437ab7083aae89792a75e5bbc1ef71fd0a21.tar.gz
aspectj-6629437ab7083aae89792a75e5bbc1ef71fd0a21.zip
223226: testcode
Diffstat (limited to 'tests/bugs160/pr223226')
-rw-r--r--tests/bugs160/pr223226/AspectX.java5
-rw-r--r--tests/bugs160/pr223226/AspectXMarker.java4
-rw-r--r--tests/bugs160/pr223226/BInterface.java2
-rw-r--r--tests/bugs160/pr223226/Foo.java2
-rw-r--r--tests/bugs160/pr223226/FooInterface.java5
-rw-r--r--tests/bugs160/pr223226/Test.java9
6 files changed, 27 insertions, 0 deletions
diff --git a/tests/bugs160/pr223226/AspectX.java b/tests/bugs160/pr223226/AspectX.java
new file mode 100644
index 000000000..188be0ca2
--- /dev/null
+++ b/tests/bugs160/pr223226/AspectX.java
@@ -0,0 +1,5 @@
+public aspect AspectX
+{
+ public A AspectXMarker<A,B>.doSomething(B b) { return null; }
+}
+
diff --git a/tests/bugs160/pr223226/AspectXMarker.java b/tests/bugs160/pr223226/AspectXMarker.java
new file mode 100644
index 000000000..7397de4e9
--- /dev/null
+++ b/tests/bugs160/pr223226/AspectXMarker.java
@@ -0,0 +1,4 @@
+public interface AspectXMarker <A, B extends BInterface<?> > extends
+FooInterface<A, B>
+{ }
+
diff --git a/tests/bugs160/pr223226/BInterface.java b/tests/bugs160/pr223226/BInterface.java
new file mode 100644
index 000000000..790d4967c
--- /dev/null
+++ b/tests/bugs160/pr223226/BInterface.java
@@ -0,0 +1,2 @@
+public interface BInterface<S> { }
+
diff --git a/tests/bugs160/pr223226/Foo.java b/tests/bugs160/pr223226/Foo.java
new file mode 100644
index 000000000..aa42921f2
--- /dev/null
+++ b/tests/bugs160/pr223226/Foo.java
@@ -0,0 +1,2 @@
+public class Foo<B extends BInterface<?>> implements AspectXMarker<Integer, B>
+{}
diff --git a/tests/bugs160/pr223226/FooInterface.java b/tests/bugs160/pr223226/FooInterface.java
new file mode 100644
index 000000000..e4884ba47
--- /dev/null
+++ b/tests/bugs160/pr223226/FooInterface.java
@@ -0,0 +1,5 @@
+public interface FooInterface<A,B>
+{
+ public A doSomething(B transition);
+}
+
diff --git a/tests/bugs160/pr223226/Test.java b/tests/bugs160/pr223226/Test.java
new file mode 100644
index 000000000..354916dcb
--- /dev/null
+++ b/tests/bugs160/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);
+ }
+}