aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs1922/github_302/SecondAspect.aj
diff options
context:
space:
mode:
authorAlexander Kriegisch <Alexander@Kriegisch.name>2024-04-10 11:03:13 +0200
committerAlexander Kriegisch <Alexander@Kriegisch.name>2024-04-10 11:23:00 +0200
commit856db5d97f329041751418b2cc43d7574e26144d (patch)
tree10893c2586a7b98fc5d48473a23499c32ba53be8 /tests/bugs1922/github_302/SecondAspect.aj
parente54ae565842527ac8cd55807649a32d17dec627e (diff)
downloadaspectj-856db5d97f329041751418b2cc43d7574e26144d.tar.gz
aspectj-856db5d97f329041751418b2cc43d7574e26144d.zip
Add IT reproducing JoinPointImpl thread-locals memory leak
Relates to #302. Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'tests/bugs1922/github_302/SecondAspect.aj')
-rw-r--r--tests/bugs1922/github_302/SecondAspect.aj12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/bugs1922/github_302/SecondAspect.aj b/tests/bugs1922/github_302/SecondAspect.aj
new file mode 100644
index 000000000..5f088b63a
--- /dev/null
+++ b/tests/bugs1922/github_302/SecondAspect.aj
@@ -0,0 +1,12 @@
+import org.aspectj.lang.ProceedingJoinPoint;
+import org.aspectj.lang.annotation.Around;
+import org.aspectj.lang.annotation.Aspect;
+
+@Aspect
+public class SecondAspect {
+ @Around("execution(* toIntercept())")
+ public Object doAround(ProceedingJoinPoint joinPoint) throws Throwable {
+ //System.out.println(getClass().getSimpleName());
+ return joinPoint.proceed();
+ }
+}