aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs169
diff options
context:
space:
mode:
authoraclement <aclement>2010-03-22 22:03:43 +0000
committeraclement <aclement>2010-03-22 22:03:43 +0000
commitad2c31d53ca35b0637a76789279fce24b937e63b (patch)
treece19a37bfae7d64ddbd5b3b9b47a84bdadbac23c /tests/bugs169
parentb95d3f555fc067c62ba763d6d891061e9caa653b (diff)
downloadaspectj-ad2c31d53ca35b0637a76789279fce24b937e63b.tar.gz
aspectj-ad2c31d53ca35b0637a76789279fce24b937e63b.zip
298665: testcode
Diffstat (limited to 'tests/bugs169')
-rw-r--r--tests/bugs169/pr298665/A.java8
-rw-r--r--tests/bugs169/pr298665/Main.java29
2 files changed, 37 insertions, 0 deletions
diff --git a/tests/bugs169/pr298665/A.java b/tests/bugs169/pr298665/A.java
new file mode 100644
index 000000000..28d74385c
--- /dev/null
+++ b/tests/bugs169/pr298665/A.java
@@ -0,0 +1,8 @@
+import java.util.*;
+
+public class A<? extends M> {
+ public void foo(List<?> m) {}
+}
+class B extends A {
+ public void foo(List<? extends Object> m) {}
+}
diff --git a/tests/bugs169/pr298665/Main.java b/tests/bugs169/pr298665/Main.java
new file mode 100644
index 000000000..4a6cfaa04
--- /dev/null
+++ b/tests/bugs169/pr298665/Main.java
@@ -0,0 +1,29 @@
+aspect MyAspect
+{
+ public interface MyInterface
+ {
+ public boolean instanceOf(Class<? extends Object> c);
+ //public boolean instanceOf(Class c);
+ }
+
+ declare parents: MyObject implements MyInterface;
+
+ public boolean MyInterface.instanceOf(Class<? extends Object> c)
+ //public boolean MyInterface.instanceOf(Class c)
+ {
+ return c.isInstance(this);
+ }
+}
+
+class MyObject
+{
+ // public boolean instanceOf(Class<? extends Object> c) {return true;}
+}
+
+public class Main
+{
+ public static void main(String[] args)
+ {
+ new MyObject().instanceOf(Object.class);
+ }
+}