summaryrefslogtreecommitdiffstats
path: root/tests/java5
diff options
context:
space:
mode:
authoraclement <aclement>2005-11-16 15:59:15 +0000
committeraclement <aclement>2005-11-16 15:59:15 +0000
commitabb5d6c097d8c0ec8f33dc95342732855148bb18 (patch)
tree7898c0ffad8509a6aa3894f17449544b75522669 /tests/java5
parent887fab820369d0fdefd14ef7cffe66014c1e6843 (diff)
downloadaspectj-abb5d6c097d8c0ec8f33dc95342732855148bb18.tar.gz
aspectj-abb5d6c097d8c0ec8f33dc95342732855148bb18.zip
next round of fixes for list bug reported by Alexandru.
Diffstat (limited to 'tests/java5')
-rw-r--r--tests/java5/generics/bugs/lists/case1/Bean.java (renamed from tests/java5/generics/bugs/lists/Bean.java)0
-rw-r--r--tests/java5/generics/bugs/lists/case1/Identifiable.java (renamed from tests/java5/generics/bugs/lists/Identifiable.java)0
-rw-r--r--tests/java5/generics/bugs/lists/case1/IdentifiableAspect.java (renamed from tests/java5/generics/bugs/lists/IdentifiableAspect.java)0
-rw-r--r--tests/java5/generics/bugs/lists/case1/LongIdentifiable.java (renamed from tests/java5/generics/bugs/lists/LongIdentifiable.java)0
-rw-r--r--tests/java5/generics/bugs/lists/case2/Bean.java3
-rw-r--r--tests/java5/generics/bugs/lists/case2/Identifiable.java5
-rw-r--r--tests/java5/generics/bugs/lists/case2/IdentifiableAspect.java20
-rw-r--r--tests/java5/generics/bugs/lists/case2/LongIdentifiable.java2
8 files changed, 30 insertions, 0 deletions
diff --git a/tests/java5/generics/bugs/lists/Bean.java b/tests/java5/generics/bugs/lists/case1/Bean.java
index b1260caea..b1260caea 100644
--- a/tests/java5/generics/bugs/lists/Bean.java
+++ b/tests/java5/generics/bugs/lists/case1/Bean.java
diff --git a/tests/java5/generics/bugs/lists/Identifiable.java b/tests/java5/generics/bugs/lists/case1/Identifiable.java
index 645ee36de..645ee36de 100644
--- a/tests/java5/generics/bugs/lists/Identifiable.java
+++ b/tests/java5/generics/bugs/lists/case1/Identifiable.java
diff --git a/tests/java5/generics/bugs/lists/IdentifiableAspect.java b/tests/java5/generics/bugs/lists/case1/IdentifiableAspect.java
index 32fe42390..32fe42390 100644
--- a/tests/java5/generics/bugs/lists/IdentifiableAspect.java
+++ b/tests/java5/generics/bugs/lists/case1/IdentifiableAspect.java
diff --git a/tests/java5/generics/bugs/lists/LongIdentifiable.java b/tests/java5/generics/bugs/lists/case1/LongIdentifiable.java
index 37fa76252..37fa76252 100644
--- a/tests/java5/generics/bugs/lists/LongIdentifiable.java
+++ b/tests/java5/generics/bugs/lists/case1/LongIdentifiable.java
diff --git a/tests/java5/generics/bugs/lists/case2/Bean.java b/tests/java5/generics/bugs/lists/case2/Bean.java
new file mode 100644
index 000000000..3415bed70
--- /dev/null
+++ b/tests/java5/generics/bugs/lists/case2/Bean.java
@@ -0,0 +1,3 @@
+public class Bean implements LongIdentifiable {
+
+}
diff --git a/tests/java5/generics/bugs/lists/case2/Identifiable.java b/tests/java5/generics/bugs/lists/case2/Identifiable.java
new file mode 100644
index 000000000..645ee36de
--- /dev/null
+++ b/tests/java5/generics/bugs/lists/case2/Identifiable.java
@@ -0,0 +1,5 @@
+public interface Identifiable<T> {
+ T getId();
+
+ void setId(T t);
+}
diff --git a/tests/java5/generics/bugs/lists/case2/IdentifiableAspect.java b/tests/java5/generics/bugs/lists/case2/IdentifiableAspect.java
new file mode 100644
index 000000000..bbf593657
--- /dev/null
+++ b/tests/java5/generics/bugs/lists/case2/IdentifiableAspect.java
@@ -0,0 +1,20 @@
+public aspect IdentifiableAspect {
+ declare parents: Bean implements LongIdentifiable;
+
+ private Long LongIdentifiable.m_id;
+
+ public Long LongIdentifiable.getId() {
+ return m_id;
+ }
+
+ public void LongIdentifiable.setId(Long id) {
+ m_id= id;
+ }
+
+ public static void main(String []argv) {
+ Bean b = new Bean();
+ b.setId(37L);
+ long l = b.getId();
+ if (l!=37L) throw new RuntimeException("id should be 37");
+ }
+}
diff --git a/tests/java5/generics/bugs/lists/case2/LongIdentifiable.java b/tests/java5/generics/bugs/lists/case2/LongIdentifiable.java
new file mode 100644
index 000000000..37fa76252
--- /dev/null
+++ b/tests/java5/generics/bugs/lists/case2/LongIdentifiable.java
@@ -0,0 +1,2 @@
+public interface LongIdentifiable extends Identifiable<Long> {
+}