aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5
diff options
context:
space:
mode:
authoraclement <aclement>2005-11-14 16:51:49 +0000
committeraclement <aclement>2005-11-14 16:51:49 +0000
commit318383d9219bbd35ed97ade06ffe3f2406237923 (patch)
tree35fdb4abbc6b0ba90add883f4a852d000a3ba966 /tests/java5
parente98ad2257a6cd99607f50646d9757ab25c150c54 (diff)
downloadaspectj-318383d9219bbd35ed97ade06ffe3f2406237923.tar.gz
aspectj-318383d9219bbd35ed97ade06ffe3f2406237923.zip
reported on the list - failing to compile - using ITD to override a parameterized method
Diffstat (limited to 'tests/java5')
-rw-r--r--tests/java5/generics/bugs/lists/Bean.java10
-rw-r--r--tests/java5/generics/bugs/lists/Identifiable.java5
-rw-r--r--tests/java5/generics/bugs/lists/IdentifiableAspect.java13
-rw-r--r--tests/java5/generics/bugs/lists/LongIdentifiable.java2
4 files changed, 30 insertions, 0 deletions
diff --git a/tests/java5/generics/bugs/lists/Bean.java b/tests/java5/generics/bugs/lists/Bean.java
new file mode 100644
index 000000000..b1260caea
--- /dev/null
+++ b/tests/java5/generics/bugs/lists/Bean.java
@@ -0,0 +1,10 @@
+public class Bean implements LongIdentifiable {
+
+ public Long getId() {
+ return null;
+ }
+
+ public void setId(Long t) {
+ }
+
+}
diff --git a/tests/java5/generics/bugs/lists/Identifiable.java b/tests/java5/generics/bugs/lists/Identifiable.java
new file mode 100644
index 000000000..645ee36de
--- /dev/null
+++ b/tests/java5/generics/bugs/lists/Identifiable.java
@@ -0,0 +1,5 @@
+public interface Identifiable<T> {
+ T getId();
+
+ void setId(T t);
+}
diff --git a/tests/java5/generics/bugs/lists/IdentifiableAspect.java b/tests/java5/generics/bugs/lists/IdentifiableAspect.java
new file mode 100644
index 000000000..3adf9cd13
--- /dev/null
+++ b/tests/java5/generics/bugs/lists/IdentifiableAspect.java
@@ -0,0 +1,13 @@
+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;
+ }
+}
diff --git a/tests/java5/generics/bugs/lists/LongIdentifiable.java b/tests/java5/generics/bugs/lists/LongIdentifiable.java
new file mode 100644
index 000000000..37fa76252
--- /dev/null
+++ b/tests/java5/generics/bugs/lists/LongIdentifiable.java
@@ -0,0 +1,2 @@
+public interface LongIdentifiable extends Identifiable<Long> {
+}