diff options
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 |