aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs162
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs162')
-rw-r--r--tests/bugs162/pr242797/case2/GenericMethodAspect.aj10
-rw-r--r--tests/bugs162/pr242797/case2/GenericMethodImpl.java10
-rw-r--r--tests/bugs162/pr242797/case2/GenericMethodInterface.java12
3 files changed, 32 insertions, 0 deletions
diff --git a/tests/bugs162/pr242797/case2/GenericMethodAspect.aj b/tests/bugs162/pr242797/case2/GenericMethodAspect.aj
new file mode 100644
index 000000000..8bd5d166d
--- /dev/null
+++ b/tests/bugs162/pr242797/case2/GenericMethodAspect.aj
@@ -0,0 +1,10 @@
+import java.util.ArrayList;
+import java.util.List;
+
+public aspect GenericMethodAspect {
+
+ public <T> List<T> GenericMethodInterface.getStuff(){
+ return new ArrayList<T>();
+ }
+
+}
diff --git a/tests/bugs162/pr242797/case2/GenericMethodImpl.java b/tests/bugs162/pr242797/case2/GenericMethodImpl.java
new file mode 100644
index 000000000..c71fd4064
--- /dev/null
+++ b/tests/bugs162/pr242797/case2/GenericMethodImpl.java
@@ -0,0 +1,10 @@
+import java.util.LinkedList;
+import java.util.List;
+
+public class GenericMethodImpl implements GenericMethodInterface{
+
+ public <T> List<T> getStuff(){
+ return new LinkedList<T>();
+ }
+
+}
diff --git a/tests/bugs162/pr242797/case2/GenericMethodInterface.java b/tests/bugs162/pr242797/case2/GenericMethodInterface.java
new file mode 100644
index 000000000..c99f2e9e9
--- /dev/null
+++ b/tests/bugs162/pr242797/case2/GenericMethodInterface.java
@@ -0,0 +1,12 @@
+import java.util.List;
+
+
+/*
+ * Created on Aug 19, 2008
+ */
+
+public interface GenericMethodInterface {
+
+ public <T> List<T> getStuff();
+
+}