diff options
author | aclement <aclement> | 2005-10-31 15:53:24 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-10-31 15:53:24 +0000 |
commit | 260ff1798e0aaaba8cef2c848578f5817d072abe (patch) | |
tree | e8796a8d73a44494611823a2a880b8fa04fe0bd7 /tests/bugs/lazyTjpXLintWarning/LazyTjpTest1.java | |
parent | 7d5000a3785da1d615b5c5ca9ce584f3509f5db4 (diff) | |
download | aspectj-260ff1798e0aaaba8cef2c848578f5817d072abe.tar.gz aspectj-260ff1798e0aaaba8cef2c848578f5817d072abe.zip |
lazytjp default - test code
Diffstat (limited to 'tests/bugs/lazyTjpXLintWarning/LazyTjpTest1.java')
-rw-r--r-- | tests/bugs/lazyTjpXLintWarning/LazyTjpTest1.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/bugs/lazyTjpXLintWarning/LazyTjpTest1.java b/tests/bugs/lazyTjpXLintWarning/LazyTjpTest1.java new file mode 100644 index 000000000..8df2f5ace --- /dev/null +++ b/tests/bugs/lazyTjpXLintWarning/LazyTjpTest1.java @@ -0,0 +1,21 @@ +public class LazyTjpTest1 { + + public void test1 () { } + public void test2 () { } + + private static aspect Aspect2 { + + // OK, no tjp used in the advice + void around () : execution(public void test1()) { + System.out.println("Aspect2.around() "); + proceed(); + } + + // Warning: tjp used in around advice so can't apply lazyTjp + void around () : execution(public void test2()) { + System.out.println("Aspect2.around() " + thisJoinPoint); + proceed(); + } + } + +} |