diff options
author | aclement <aclement> | 2005-11-29 13:21:24 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-11-29 13:21:24 +0000 |
commit | 385d9ef905eb07bdd37fd25887ad0a8e69e06f45 (patch) | |
tree | 2e9b41bb67df4ca35c4edc2eccd61e23f1f7dca5 /tests/compatibility | |
parent | b6980f2f7b2697e41b454a16d3a7bd1e0135aa8d (diff) | |
download | aspectj-385d9ef905eb07bdd37fd25887ad0a8e69e06f45.tar.gz aspectj-385d9ef905eb07bdd37fd25887ad0a8e69e06f45.zip |
code for 116679: targetting a 1.2.1 runtime
Diffstat (limited to 'tests/compatibility')
-rw-r--r-- | tests/compatibility/Simple.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/compatibility/Simple.java b/tests/compatibility/Simple.java new file mode 100644 index 000000000..72fec1886 --- /dev/null +++ b/tests/compatibility/Simple.java @@ -0,0 +1,21 @@ +public class Simple { + public static void main(String []argv) { + new Simple().a(); + } + + public void a() {} +} + +aspect X { + before():execution(* a(..)) { + System.err.println(thisJoinPoint); + System.err.println(thisJoinPointStaticPart); + System.err.println(thisEnclosingJoinPointStaticPart); + } + + before():execution(Simple.new(..)) { + System.err.println(thisJoinPoint); + System.err.println(thisEnclosingJoinPointStaticPart); + System.err.println(thisJoinPointStaticPart); + } +} |