aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-11-29 20:45:38 +0000
committeracolyer <acolyer>2005-11-29 20:45:38 +0000
commitbf97cc20ba2315b0e72b239f66c20bc474984789 (patch)
tree1ca09eeea1deda7ac871a85aeb65ee5157624aac /tests/bugs150
parent7cf0d6499ce9894015f192adb68cac3e5501148f (diff)
downloadaspectj-bf97cc20ba2315b0e72b239f66c20bc474984789.tar.gz
aspectj-bf97cc20ba2315b0e72b239f66c20bc474984789.zip
tests for parameter name generation in advice annotations
Diffstat (limited to 'tests/bugs150')
-rw-r--r--tests/bugs150/LocalVarTableGen.aj26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/bugs150/LocalVarTableGen.aj b/tests/bugs150/LocalVarTableGen.aj
new file mode 100644
index 000000000..a281dbb11
--- /dev/null
+++ b/tests/bugs150/LocalVarTableGen.aj
@@ -0,0 +1,26 @@
+public aspect LocalVarTableGen {
+
+ int x = 5;
+
+ public String foo(String s) {
+ String myLocal = "" + x + s;
+ return myLocal;
+ }
+
+ public String bar(String s) {
+ String myLocal = "" + x + s;
+ return myLocal;
+ }
+
+ before() : execution(* foo(..)) {
+ System.out.println("before foo");
+ }
+
+ after(String in) returning(String out) :
+ execution(* bar(..)) && args(in)
+ {
+ System.out.println("after bar");
+ }
+
+
+} \ No newline at end of file