diff options
author | aclement <aclement> | 2006-05-12 08:17:43 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-05-12 08:17:43 +0000 |
commit | 5d2b5b8892cc6e714565326b70d7c6a4b7007129 (patch) | |
tree | 5b021aa2f81c7991cac1a043dbe262863a2d818c /tests/bugs152/pr138384 | |
parent | 9d1f31f65bbf7e7d4b5e205d983201d724f97676 (diff) | |
download | aspectj-5d2b5b8892cc6e714565326b70d7c6a4b7007129.tar.gz aspectj-5d2b5b8892cc6e714565326b70d7c6a4b7007129.zip |
test and fix for 138384: woven methods being >64k in code size
Diffstat (limited to 'tests/bugs152/pr138384')
-rw-r--r-- | tests/bugs152/pr138384/BigMethod.java | 488 |
1 files changed, 488 insertions, 0 deletions
diff --git a/tests/bugs152/pr138384/BigMethod.java b/tests/bugs152/pr138384/BigMethod.java new file mode 100644 index 000000000..ac68c32f0 --- /dev/null +++ b/tests/bugs152/pr138384/BigMethod.java @@ -0,0 +1,488 @@ +public class BigMethod { + + public void i_am_a_big_method() { + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + for (int i = 0; i < 1; i++) { + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + System.out.print("."); + } + } + + public static void main(String[] args) { + new BigMethod().i_am_a_big_method(); + } +} + +aspect GoBang { + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } + before(): call(* *(..)) && withincode(void i_am_a_big_method()) { + System.err.println("Kaboom"); + } +}
\ No newline at end of file |