aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs165/pr271169/HypChecksums.java
diff options
context:
space:
mode:
authoraclement <aclement>2009-04-04 18:41:40 +0000
committeraclement <aclement>2009-04-04 18:41:40 +0000
commitb90b11e6346a98ec268bfc7619e4d8980b939429 (patch)
treefe59eacb37d97ea2643c1df94c2ca495410ebe27 /tests/bugs165/pr271169/HypChecksums.java
parentdf5127eb48ca10ae10014c5a05dfcce9bf5839ff (diff)
downloadaspectj-b90b11e6346a98ec268bfc7619e4d8980b939429.tar.gz
aspectj-b90b11e6346a98ec268bfc7619e4d8980b939429.zip
271169: test and fix: npe in weave call method with 4 longs
Diffstat (limited to 'tests/bugs165/pr271169/HypChecksums.java')
-rw-r--r--tests/bugs165/pr271169/HypChecksums.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/bugs165/pr271169/HypChecksums.java b/tests/bugs165/pr271169/HypChecksums.java
new file mode 100644
index 000000000..f76fa9272
--- /dev/null
+++ b/tests/bugs165/pr271169/HypChecksums.java
@@ -0,0 +1,19 @@
+public class HypChecksums {
+
+ static class Adler {
+ long combine(long a, long b, long c, long d) {
+ return 3;
+ }
+ }
+
+ public static void main(final String[] pArgs) {
+ Adler comb = new Adler();
+ comb.combine(4, 2, 3, 3);
+ }
+}
+
+aspect X {
+ Object around(): call(* combine(..)) && !within(X) {
+ return proceed();
+ }
+}