diff options
author | Andy Clement <andrew.clement@gmail.com> | 2013-04-01 14:34:25 -0700 |
---|---|---|
committer | Andy Clement <andrew.clement@gmail.com> | 2013-04-01 14:34:25 -0700 |
commit | 99414d4203fc52b93dfa8ecb69211766609137ad (patch) | |
tree | 22f560022a2bd577bef7b2bc9c07cebf1c2ec0a1 /tests/bugs173 | |
parent | 1afe1016d04389da4918b3d91f0d8125183dd040 (diff) | |
download | aspectj-99414d4203fc52b93dfa8ecb69211766609137ad.tar.gz aspectj-99414d4203fc52b93dfa8ecb69211766609137ad.zip |
Fix for 404601
Added 1.7.3 test suite
Diffstat (limited to 'tests/bugs173')
-rw-r--r-- | tests/bugs173/lyor/2/A1.java | 9 | ||||
-rw-r--r-- | tests/bugs173/lyor/2/A2.java | 4 | ||||
-rw-r--r-- | tests/bugs173/lyor/2/Code.java | 1 | ||||
-rw-r--r-- | tests/bugs173/lyor/2/Intface.java | 1 | ||||
-rw-r--r-- | tests/bugs173/lyor/Code.java | 13 | ||||
-rw-r--r-- | tests/bugs173/pr404601/user/IUser.java | 3 | ||||
-rw-r--r-- | tests/bugs173/pr404601/user/Test.java | 3 | ||||
-rw-r--r-- | tests/bugs173/pr404601/user/UserTrait.java | 12 | ||||
-rw-r--r-- | tests/bugs173/pr404601/user/Youser.java | 4 |
9 files changed, 50 insertions, 0 deletions
diff --git a/tests/bugs173/lyor/2/A1.java b/tests/bugs173/lyor/2/A1.java new file mode 100644 index 000000000..18d7ca8fc --- /dev/null +++ b/tests/bugs173/lyor/2/A1.java @@ -0,0 +1,9 @@ +import java.lang.annotation.*; + +@Retention(RetentionPolicy.RUNTIME) +@interface Foo {} + +aspect A1 { + declare @method: void Intface+.getName(): @Foo; +} + diff --git a/tests/bugs173/lyor/2/A2.java b/tests/bugs173/lyor/2/A2.java new file mode 100644 index 000000000..c5e8b6161 --- /dev/null +++ b/tests/bugs173/lyor/2/A2.java @@ -0,0 +1,4 @@ +aspect A2 { + public void Intface.getName() { } +} + diff --git a/tests/bugs173/lyor/2/Code.java b/tests/bugs173/lyor/2/Code.java new file mode 100644 index 000000000..309a3bb61 --- /dev/null +++ b/tests/bugs173/lyor/2/Code.java @@ -0,0 +1 @@ +class C implements Intface {} diff --git a/tests/bugs173/lyor/2/Intface.java b/tests/bugs173/lyor/2/Intface.java new file mode 100644 index 000000000..25c8c3276 --- /dev/null +++ b/tests/bugs173/lyor/2/Intface.java @@ -0,0 +1 @@ +interface Intface {} diff --git a/tests/bugs173/lyor/Code.java b/tests/bugs173/lyor/Code.java new file mode 100644 index 000000000..50b372627 --- /dev/null +++ b/tests/bugs173/lyor/Code.java @@ -0,0 +1,13 @@ +import java.lang.annotation.*; + +@Retention(RetentionPolicy.RUNTIME) +@interface Foo {} + +aspect A { + declare @method: void *.getName(): @Foo; + public void Intface.getName() { } +} + +interface Intface { } + +class C implements Intface {} 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) { } +} |