aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs')
-rw-r--r--tests/bugs/lazyTjpXLintWarning/LazyTjpTest4.java4
-rw-r--r--tests/bugs/lazyTjpXLintWarning/LazyTjpTest5.java22
-rw-r--r--tests/bugs/lazyTjpXLintWarning/Scenario3.aj2
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();
}