From 594d612882406850b607e871f31b7cab606e6710 Mon Sep 17 00:00:00 2001 From: jhugunin Date: Tue, 27 May 2003 18:30:39 +0000 Subject: [PATCH] test for Bugzilla Bug 38168 insertion of lots of advice code can make branch offset for if too large test entered as a knownLimitation for 1.1.0 --- tests/ajcTests.xml | 5 +++ tests/bugs/WideJumps.java | 93 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+) create mode 100644 tests/bugs/WideJumps.java diff --git a/tests/ajcTests.xml b/tests/ajcTests.xml index c03e1c081..1ee1b5d15 100644 --- a/tests/ajcTests.xml +++ b/tests/ajcTests.xml @@ -6362,4 +6362,9 @@ + + + + diff --git a/tests/bugs/WideJumps.java b/tests/bugs/WideJumps.java new file mode 100644 index 000000000..88aa39fb3 --- /dev/null +++ b/tests/bugs/WideJumps.java @@ -0,0 +1,93 @@ +// for need to fill in bug # + + +public class WideJumps { + public static void main(String[] args) { + new WideJumps().m(true); + } + + public void m(boolean b) { + if (b) { + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + m(1,2,3,4,5,6,7,8,9,0); + } + } + + private void m(int i0, int i1, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9) { + } +} + +aspect A { + Object around(): call(void m(..)) { + System.out.println("around: " + thisJoinPoint); + return proceed(); + } + + after(int i1, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9, int i0): + call(void m(..)) && args(i1, i2, i3, i4, i5, i6, i7, i8, i9, i0) && if(i1