aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs162
diff options
context:
space:
mode:
authoraclement <aclement>2008-07-17 17:09:54 +0000
committeraclement <aclement>2008-07-17 17:09:54 +0000
commit49303882a2920465cf8889b7d7975bbe329696c0 (patch)
tree01f04233f660f3ae4ce0d954d3ec47c792519ad3 /tests/bugs162
parent36311b94bb2057af442f50e1308b1328737e10f3 (diff)
downloadaspectj-49303882a2920465cf8889b7d7975bbe329696c0.tar.gz
aspectj-49303882a2920465cf8889b7d7975bbe329696c0.zip
239441 - testcode and fix
Diffstat (limited to 'tests/bugs162')
-rw-r--r--tests/bugs162/pr233718/ArgsBinding.java9
-rw-r--r--tests/bugs162/pr233718/ArgsMatching.java9
-rw-r--r--tests/bugs162/pr233718/Matching.java9
3 files changed, 27 insertions, 0 deletions
diff --git a/tests/bugs162/pr233718/ArgsBinding.java b/tests/bugs162/pr233718/ArgsBinding.java
new file mode 100644
index 000000000..97550ecff
--- /dev/null
+++ b/tests/bugs162/pr233718/ArgsBinding.java
@@ -0,0 +1,9 @@
+public aspect ArgsBinding {
+// public void m() {}
+// public void m(String a) {}
+ public void m(String a,String b) {}
+// public void m(int a,String b) {}
+
+
+ before(String[] p): execution(* m(..)) && args(..,p,..) {}
+}
diff --git a/tests/bugs162/pr233718/ArgsMatching.java b/tests/bugs162/pr233718/ArgsMatching.java
new file mode 100644
index 000000000..b7f29504a
--- /dev/null
+++ b/tests/bugs162/pr233718/ArgsMatching.java
@@ -0,0 +1,9 @@
+public aspect ArgsMatching {
+// public void m() {}
+// public void m(String a) {}
+ public void m(String a,String b) {}
+// public void m(int a,String b) {}
+
+
+ before(): execution(* m(..)) && args(..,String,..) {}
+}
diff --git a/tests/bugs162/pr233718/Matching.java b/tests/bugs162/pr233718/Matching.java
new file mode 100644
index 000000000..9fa60ab33
--- /dev/null
+++ b/tests/bugs162/pr233718/Matching.java
@@ -0,0 +1,9 @@
+public aspect Matching {
+ public void m() {}
+ public void m(String a) {}
+ public void m(String a,String b) {}
+ public void m(int a,String b) {}
+
+
+ before(): execution(* m(..,String,..)) {}
+}