aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs160
diff options
context:
space:
mode:
authoraclement <aclement>2007-01-23 10:45:30 +0000
committeraclement <aclement>2007-01-23 10:45:30 +0000
commit8ab740316c2afbe54fbdd081b0e4ad2790c3ef60 (patch)
tree040cb9ceee1cbd9d0426ff3dfdf694c79d60c422 /tests/bugs160
parentfe356d2b742c642a931d40e6e5c5c43118c35f89 (diff)
downloadaspectj-8ab740316c2afbe54fbdd081b0e4ad2790c3ef60.tar.gz
aspectj-8ab740316c2afbe54fbdd081b0e4ad2790c3ef60.zip
170467: methods with parameterized parameters not working in ITD overrides relationship. tests and fix.
Diffstat (limited to 'tests/bugs160')
-rw-r--r--tests/bugs160/pr170467/Bug.aj16
-rw-r--r--tests/bugs160/pr170467/Bug2.aj16
2 files changed, 32 insertions, 0 deletions
diff --git a/tests/bugs160/pr170467/Bug.aj b/tests/bugs160/pr170467/Bug.aj
new file mode 100644
index 000000000..4c68eda07
--- /dev/null
+++ b/tests/bugs160/pr170467/Bug.aj
@@ -0,0 +1,16 @@
+import java.util.*;
+
+// this should be OK, the parameterized forms of Set are the same
+
+abstract class BaseClass { }
+
+aspect BaseClassAspect {
+ public abstract void BaseClass.setSomething(Set<String> somethings);
+}
+
+class ExtendedBaseClass extends BaseClass {
+ @Override
+ public void setSomething(Set<String> somethings) { }
+}
+
+
diff --git a/tests/bugs160/pr170467/Bug2.aj b/tests/bugs160/pr170467/Bug2.aj
new file mode 100644
index 000000000..89b5121c4
--- /dev/null
+++ b/tests/bugs160/pr170467/Bug2.aj
@@ -0,0 +1,16 @@
+import java.util.*;
+
+// Trivial testcase to ensure the basics behave
+
+abstract class BaseClass { }
+
+aspect BaseClassAspect {
+ public abstract void BaseClass.setSomething(Set somethings);
+}
+
+class ExtendedBaseClass extends BaseClass {
+ @Override
+ public void setSomething(Set somethings) { }
+}
+
+