aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs1611/pr336774
diff options
context:
space:
mode:
authoraclement <aclement>2011-02-10 22:52:59 +0000
committeraclement <aclement>2011-02-10 22:52:59 +0000
commit01be71f629baedd6cc0018b8b4305093c6c91c8a (patch)
tree75426877ad30d99e50eac423e11aba25068c9f10 /tests/bugs1611/pr336774
parent1083a1d359be9ac539de0b0d18414598c80c8c92 (diff)
downloadaspectj-01be71f629baedd6cc0018b8b4305093c6c91c8a.tar.gz
aspectj-01be71f629baedd6cc0018b8b4305093c6c91c8a.zip
PR336880 PR336774 PR336745
Diffstat (limited to 'tests/bugs1611/pr336774')
-rw-r--r--tests/bugs1611/pr336774/First.java7
-rw-r--r--tests/bugs1611/pr336774/One.java7
-rw-r--r--tests/bugs1611/pr336774/Test.java5
-rw-r--r--tests/bugs1611/pr336774/Two.java5
4 files changed, 24 insertions, 0 deletions
diff --git a/tests/bugs1611/pr336774/First.java b/tests/bugs1611/pr336774/First.java
new file mode 100644
index 000000000..8e6b9c464
--- /dev/null
+++ b/tests/bugs1611/pr336774/First.java
@@ -0,0 +1,7 @@
+interface NodeBacked {
+// <T extends NodeBacked> T projectTo(Class<T> cts);
+}
+
+aspect X {
+ public <T extends NodeBacked> T NodeBacked.projectTo(Class<T> cts) {return null;}
+}
diff --git a/tests/bugs1611/pr336774/One.java b/tests/bugs1611/pr336774/One.java
new file mode 100644
index 000000000..095a51078
--- /dev/null
+++ b/tests/bugs1611/pr336774/One.java
@@ -0,0 +1,7 @@
+interface NodeBacked2 {
+ Object projectTo(Class cts);
+}
+
+aspect X {
+ public Object NodeBacked2.projectTo(Class cts) {return null;}
+}
diff --git a/tests/bugs1611/pr336774/Test.java b/tests/bugs1611/pr336774/Test.java
new file mode 100644
index 000000000..9b2e16eba
--- /dev/null
+++ b/tests/bugs1611/pr336774/Test.java
@@ -0,0 +1,5 @@
+class Test implements NodeBacked {
+ public void test() {
+ projectTo(null);
+ }
+}
diff --git a/tests/bugs1611/pr336774/Two.java b/tests/bugs1611/pr336774/Two.java
new file mode 100644
index 000000000..01ce9ec12
--- /dev/null
+++ b/tests/bugs1611/pr336774/Two.java
@@ -0,0 +1,5 @@
+class Two implements NodeBacked2 {
+ public void test() {
+ projectTo(null);
+ }
+}