aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs173/pr404601
diff options
context:
space:
mode:
authorAndy Clement <andrew.clement@gmail.com>2013-04-01 14:34:25 -0700
committerAndy Clement <andrew.clement@gmail.com>2013-04-01 14:34:25 -0700
commit99414d4203fc52b93dfa8ecb69211766609137ad (patch)
tree22f560022a2bd577bef7b2bc9c07cebf1c2ec0a1 /tests/bugs173/pr404601
parent1afe1016d04389da4918b3d91f0d8125183dd040 (diff)
downloadaspectj-99414d4203fc52b93dfa8ecb69211766609137ad.tar.gz
aspectj-99414d4203fc52b93dfa8ecb69211766609137ad.zip
Fix for 404601
Added 1.7.3 test suite
Diffstat (limited to 'tests/bugs173/pr404601')
-rw-r--r--tests/bugs173/pr404601/user/IUser.java3
-rw-r--r--tests/bugs173/pr404601/user/Test.java3
-rw-r--r--tests/bugs173/pr404601/user/UserTrait.java12
-rw-r--r--tests/bugs173/pr404601/user/Youser.java4
4 files changed, 22 insertions, 0 deletions
diff --git a/tests/bugs173/pr404601/user/IUser.java b/tests/bugs173/pr404601/user/IUser.java
new file mode 100644
index 000000000..63aa144eb
--- /dev/null
+++ b/tests/bugs173/pr404601/user/IUser.java
@@ -0,0 +1,3 @@
+public interface IUser {
+ void setUsername(String username);
+}
diff --git a/tests/bugs173/pr404601/user/Test.java b/tests/bugs173/pr404601/user/Test.java
new file mode 100644
index 000000000..9212b0f3e
--- /dev/null
+++ b/tests/bugs173/pr404601/user/Test.java
@@ -0,0 +1,3 @@
+public class Test {
+ public static void main(String[] argv) { new Youser("foo"); }
+}
diff --git a/tests/bugs173/pr404601/user/UserTrait.java b/tests/bugs173/pr404601/user/UserTrait.java
new file mode 100644
index 000000000..fc0d0df56
--- /dev/null
+++ b/tests/bugs173/pr404601/user/UserTrait.java
@@ -0,0 +1,12 @@
+public aspect UserTrait {
+ public interface I extends IUser { }
+
+ declare parents : Youser implements I;
+
+ public void I.setUsername(String username) {
+ testSetUsername(username);
+ }
+
+ private void I.testSetUsername(String username) { }
+
+}
diff --git a/tests/bugs173/pr404601/user/Youser.java b/tests/bugs173/pr404601/user/Youser.java
new file mode 100644
index 000000000..6919b505c
--- /dev/null
+++ b/tests/bugs173/pr404601/user/Youser.java
@@ -0,0 +1,4 @@
+public class Youser {
+ public Youser(String username) { setUsername(username); }
+ public void testSetUsername(String username) { }
+}