aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs
diff options
context:
space:
mode:
authorjhugunin <jhugunin>2003-05-27 18:30:39 +0000
committerjhugunin <jhugunin>2003-05-27 18:30:39 +0000
commit594d612882406850b607e871f31b7cab606e6710 (patch)
treef0f4270da7652db7b58d663b34b034f5d02a3311 /tests/bugs
parent6f69422b5b935c1fbaf73dc8768e41c85991d1ae (diff)
downloadaspectj-594d612882406850b607e871f31b7cab606e6710.tar.gz
aspectj-594d612882406850b607e871f31b7cab606e6710.zip
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
Diffstat (limited to 'tests/bugs')
-rw-r--r--tests/bugs/WideJumps.java93
1 files changed, 93 insertions, 0 deletions
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<i2&&i3<i4&&i5<i6&&i7<i8&&i9<i0)
+ {
+ System.out.println("after: " + thisJoinPoint);
+ }
+ 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<i2&&i3<i4&&i5<i6&&i7<i8&&i9<i0)
+ {
+ System.out.println("after: " + thisJoinPoint);
+ }
+ 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<i2&&i3<i4&&i5<i6&&i7<i8&&i9<i0)
+ {
+ System.out.println("after: " + thisJoinPoint);
+ }
+}