aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs162
diff options
context:
space:
mode:
authoraclement <aclement>2008-08-19 18:06:23 +0000
committeraclement <aclement>2008-08-19 18:06:23 +0000
commit00f8db2caec8ab08ea2b25e87da3bd76ef6502c7 (patch)
treea1f7d3f9242fc78e75a9d96e4faf143075c7fd8b /tests/bugs162
parentf359af78ac0fb7d3e9eb405ff20835fc79c2e5d7 (diff)
downloadaspectj-00f8db2caec8ab08ea2b25e87da3bd76ef6502c7.tar.gz
aspectj-00f8db2caec8ab08ea2b25e87da3bd76ef6502c7.zip
242797: npe in TypeVariable after deserialization since interfacebounds not correctly initialized
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();
+
+}