diff options
author | aclement <aclement> | 2005-11-01 21:55:21 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-11-01 21:55:21 +0000 |
commit | bb9d2de08e63266a93ac1167f87b07813561d559 (patch) | |
tree | 8fb9e6d17780dc6327443874ad06fbcad4da5ae7 /tests/bugs | |
parent | b83d91aafe4de6362cd4f9bc30e92e80d392bc20 (diff) | |
download | aspectj-bb9d2de08e63266a93ac1167f87b07813561d559.tar.gz aspectj-bb9d2de08e63266a93ac1167f87b07813561d559.zip |
pr93253: lazytjp the default
Diffstat (limited to 'tests/bugs')
-rw-r--r-- | tests/bugs/lazyTjpXLintWarning/LazyTjpTest4.java | 4 | ||||
-rw-r--r-- | tests/bugs/lazyTjpXLintWarning/LazyTjpTest5.java | 22 | ||||
-rw-r--r-- | tests/bugs/lazyTjpXLintWarning/Scenario3.aj | 2 |
3 files changed, 27 insertions, 1 deletions
diff --git a/tests/bugs/lazyTjpXLintWarning/LazyTjpTest4.java b/tests/bugs/lazyTjpXLintWarning/LazyTjpTest4.java index 148a2f556..1025d1f31 100644 --- a/tests/bugs/lazyTjpXLintWarning/LazyTjpTest4.java +++ b/tests/bugs/lazyTjpXLintWarning/LazyTjpTest4.java @@ -13,6 +13,10 @@ public class LazyTjpTest4 { before() : execution(public void LazyTjpTest4.test1()) { System.out.println(thisJoinPoint); } + + before() : execution(public void LazyTjpTest4.test1()) { + System.out.println(thisJoinPoint); + } } } diff --git a/tests/bugs/lazyTjpXLintWarning/LazyTjpTest5.java b/tests/bugs/lazyTjpXLintWarning/LazyTjpTest5.java new file mode 100644 index 000000000..caa86a83d --- /dev/null +++ b/tests/bugs/lazyTjpXLintWarning/LazyTjpTest5.java @@ -0,0 +1,22 @@ +public class LazyTjpTest5 { + + public void test1 () { } + + private static aspect Aspect1 { + + private static boolean enabled = true; + + after () : if(enabled) && execution(public void LazyTjpTest5.test1()) { + System.out.println(thisJoinPoint); + } + + before() : execution(public void LazyTjpTest5.test1()) { + System.out.println(thisJoinPoint); + } + + void around() : execution(public void LazyTjpTest5.test1()) { + System.out.println(thisJoinPoint); + } + } + +} diff --git a/tests/bugs/lazyTjpXLintWarning/Scenario3.aj b/tests/bugs/lazyTjpXLintWarning/Scenario3.aj index 7cbb765fd..cbee2ba7c 100644 --- a/tests/bugs/lazyTjpXLintWarning/Scenario3.aj +++ b/tests/bugs/lazyTjpXLintWarning/Scenario3.aj @@ -7,7 +7,7 @@ public aspect Scenario3 { pointcut toBeTraced() : execution(* main(..)); Object around() : toBeTraced() { - // Object[] args = thisJoinPoint.getArgs(); + //Object[] args = thisJoinPoint.getArgs(); return proceed(); } |