aboutsummaryrefslogtreecommitdiffstats
path: root/tests/multiIncremental/pr286341_base
diff options
context:
space:
mode:
Diffstat (limited to 'tests/multiIncremental/pr286341_base')
-rw-r--r--tests/multiIncremental/pr286341_base/base/src/Behavior.java15
-rw-r--r--tests/multiIncremental/pr286341_base/base/src/Wibble.aj21
2 files changed, 36 insertions, 0 deletions
diff --git a/tests/multiIncremental/pr286341_base/base/src/Behavior.java b/tests/multiIncremental/pr286341_base/base/src/Behavior.java
new file mode 100644
index 000000000..f4af4a76c
--- /dev/null
+++ b/tests/multiIncremental/pr286341_base/base/src/Behavior.java
@@ -0,0 +1,15 @@
+public class Behavior {
+
+ public static void main(String[] args) {
+ new Behavior().m();
+ }
+
+ public void m() {
+ int i;
+ }
+
+ public void m2() {
+ int i;
+ }
+}
+
diff --git a/tests/multiIncremental/pr286341_base/base/src/Wibble.aj b/tests/multiIncremental/pr286341_base/base/src/Wibble.aj
new file mode 100644
index 000000000..d1bf2fc3d
--- /dev/null
+++ b/tests/multiIncremental/pr286341_base/base/src/Wibble.aj
@@ -0,0 +1,21 @@
+import org.aspectj.lang.ProceedingJoinPoint;
+import org.aspectj.lang.annotation.Around;
+import org.aspectj.lang.annotation.Aspect;
+import org.aspectj.lang.annotation.Pointcut;
+
+@Aspect
+class Wibble {
+
+ @Pointcut("if() && call(public * m*(..)) && target(b)")
+ public static boolean adviseIfMonitoring(Behavior b) {
+ return true;
+ }
+
+
+ @Around("adviseIfMonitoring(b)")
+ public Object monitorBehaviorPerformance(ProceedingJoinPoint pjp, Behavior b)
+ throws Throwable {
+ return pjp.proceed();
+ }
+}
+