diff options
author | aclement <aclement> | 2006-02-02 11:31:58 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-02-02 11:31:58 +0000 |
commit | 5f10ab1ee6592619b75d8f157f937d620f92d698 (patch) | |
tree | 0328e782bd99901e63a52c1ad6d757ed6655ba07 /tests/features151/ataround/X2.java | |
parent | 7a96a40ab7d5418309c4742bdb0225cd0dfb88ff (diff) | |
download | aspectj-5f10ab1ee6592619b75d8f157f937d620f92d698.tar.gz aspectj-5f10ab1ee6592619b75d8f157f937d620f92d698.zip |
@AJ around tests for 126167
Diffstat (limited to 'tests/features151/ataround/X2.java')
-rw-r--r-- | tests/features151/ataround/X2.java | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/features151/ataround/X2.java b/tests/features151/ataround/X2.java new file mode 100644 index 000000000..396942824 --- /dev/null +++ b/tests/features151/ataround/X2.java @@ -0,0 +1,29 @@ +// Bind the target but forget to pass it on the proceed call + +aspect X2 { + + void around(M t,String p): call(void M.method(String)) && args(p) && target(t) { + System.err.println("advice from code aspect"); + proceed( "faked" ); // X2.java:7 [error] too few arguments to proceed, expected 2 + } + + public static void main(String []argv) { + M.main(argv); + } +} + + + +class M { + + String prefix; + + public M(String prefix) { this.prefix = prefix; } + + public static void main( String[] args ) { + M m = new M(">"); + m.method("real"); + } + + public void method(String s) { System.err.println(s); } +} |