diff options
author | Andy Clement <andrew.clement@gmail.com> | 2013-06-13 12:29:45 -0700 |
---|---|---|
committer | Andy Clement <andrew.clement@gmail.com> | 2013-06-13 12:29:45 -0700 |
commit | 5b0b6b07d2b581cddd1bac4a2a6b12cd4ac02b07 (patch) | |
tree | d70190d982a521f6392c71946c7a92e466e81b93 /tests/bugs173/pr407966 | |
parent | 31d8e259e5cd8b1b4810d69bbf4b9ea45ae4a4c8 (diff) | |
download | aspectj-5b0b6b07d2b581cddd1bac4a2a6b12cd4ac02b07.tar.gz aspectj-5b0b6b07d2b581cddd1bac4a2a6b12cd4ac02b07.zip |
Preserve ordering of declare annotation when removing and adding annotations
Issue: 407739
Diffstat (limited to 'tests/bugs173/pr407966')
-rw-r--r-- | tests/bugs173/pr407966/Aspect.aj | 5 | ||||
-rw-r--r-- | tests/bugs173/pr407966/Def.java | 8 | ||||
-rw-r--r-- | tests/bugs173/pr407966/Use.java | 5 |
3 files changed, 18 insertions, 0 deletions
diff --git a/tests/bugs173/pr407966/Aspect.aj b/tests/bugs173/pr407966/Aspect.aj new file mode 100644 index 000000000..7270f742f --- /dev/null +++ b/tests/bugs173/pr407966/Aspect.aj @@ -0,0 +1,5 @@ +public aspect Aspect { + void around(): call(* Def.def(..)) { + System.out.println("aspect"); + } +} diff --git a/tests/bugs173/pr407966/Def.java b/tests/bugs173/pr407966/Def.java new file mode 100644 index 000000000..49c6221fd --- /dev/null +++ b/tests/bugs173/pr407966/Def.java @@ -0,0 +1,8 @@ +class Clazz<T> { +} + +public class Def { + public static void def(Clazz<?>[] c) { + System.out.println("def"); + } +} diff --git a/tests/bugs173/pr407966/Use.java b/tests/bugs173/pr407966/Use.java new file mode 100644 index 000000000..2a21d396c --- /dev/null +++ b/tests/bugs173/pr407966/Use.java @@ -0,0 +1,5 @@ +public class Use { + public static void main(String[] argv) { + Def.def(null); + } +} |