From bb9d2de08e63266a93ac1167f87b07813561d559 Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 1 Nov 2005 21:55:21 +0000 Subject: pr93253: lazytjp the default --- tests/bugs/lazyTjpXLintWarning/LazyTjpTest4.java | 4 ++++ tests/bugs/lazyTjpXLintWarning/LazyTjpTest5.java | 22 ++++++++++++++++++++++ tests/bugs/lazyTjpXLintWarning/Scenario3.aj | 2 +- 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 tests/bugs/lazyTjpXLintWarning/LazyTjpTest5.java (limited to 'tests/bugs') 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(); } -- cgit v1.2.3