diff options
author | Andy Clement <aclement@gopivotal.com> | 2014-08-06 08:20:07 -0700 |
---|---|---|
committer | Andy Clement <aclement@gopivotal.com> | 2014-08-06 08:20:07 -0700 |
commit | b09622f37d7c6d10eb3331097e2c09d670db61fa (patch) | |
tree | 5fd65c3f0816f288f180c9f76645721fb63da9f9 /tests/bugs182/440983 | |
parent | 25f3a34a0c1e2db9b34f00afdbfb2d15d89e6418 (diff) | |
download | aspectj-b09622f37d7c6d10eb3331097e2c09d670db61fa.tar.gz aspectj-b09622f37d7c6d10eb3331097e2c09d670db61fa.zip |
Fix 440983: RuntimeInvisTypeAnnotation unpacking
Diffstat (limited to 'tests/bugs182/440983')
-rw-r--r-- | tests/bugs182/440983/Code.java | 26 | ||||
-rw-r--r-- | tests/bugs182/440983/X.java | 3 | ||||
-rw-r--r-- | tests/bugs182/440983/code.jar | bin | 0 -> 1229 bytes |
3 files changed, 29 insertions, 0 deletions
diff --git a/tests/bugs182/440983/Code.java b/tests/bugs182/440983/Code.java new file mode 100644 index 000000000..96411a378 --- /dev/null +++ b/tests/bugs182/440983/Code.java @@ -0,0 +1,26 @@ +import java.util.*; +import java.lang.annotation.*; + +@Target(ElementType.TYPE_USE) +@Retention(RetentionPolicy.CLASS) +@interface Anno {} + +public class Code { + public static void xxx(String []argv) { + List<@Anno String> ls = new ArrayList<String>(); + System.out.println(ls); + } + + public static void yyy(String []argv) { + } + + public static void main(String []argv) { + Code c = new Code(); + c.xxx(argv); + System.out.println("works"); + } +} + +//aspect X { +// before(): execution(* main(..)) {} +//} diff --git a/tests/bugs182/440983/X.java b/tests/bugs182/440983/X.java new file mode 100644 index 000000000..822bbfe13 --- /dev/null +++ b/tests/bugs182/440983/X.java @@ -0,0 +1,3 @@ +aspect X { + before(): execution(* xxx(..)) {} +} diff --git a/tests/bugs182/440983/code.jar b/tests/bugs182/440983/code.jar Binary files differnew file mode 100644 index 000000000..1ed5f21ab --- /dev/null +++ b/tests/bugs182/440983/code.jar |