diff options
Diffstat (limited to 'tests/bugs153/pr162135/Foo4.java')
-rw-r--r-- | tests/bugs153/pr162135/Foo4.java | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/bugs153/pr162135/Foo4.java b/tests/bugs153/pr162135/Foo4.java new file mode 100644 index 000000000..05bea569c --- /dev/null +++ b/tests/bugs153/pr162135/Foo4.java @@ -0,0 +1,39 @@ +//package com.foliofn.infra.logging; + +import java.lang.reflect.Field; + +import org.aspectj.lang.ProceedingJoinPoint; +import org.aspectj.lang.annotation.Around; +import org.aspectj.lang.annotation.Aspect; +import org.aspectj.lang.annotation.Pointcut; + +@Aspect public class Foo4 { + + public void m() { + new RuntimeException("hello"); + } + + public static void main(String[] argv) { + + } + @Pointcut("call(Throwable+.new(String, ..)) && args(exceptionMessage) && if()") + public static boolean exceptionInitializer(String exceptionMessage) { + return true; + } + + @Around("exceptionInitializer( exceptionMessage)") + public Object annotateException(ProceedingJoinPoint jp, String exceptionMessage) { + return null; + } + +// @Pointcut("call(Throwable+.new(String, ..)) && this(caller) && args(exceptionMessage) && if()") +// public static boolean exceptionInitializer(Object caller, String exceptionMessage) { +// return true; +// } +// +// @Around("exceptionInitializer(caller, exceptionMessage)") +// public Object annotateException(ProceedingJoinPoint jp, Object caller, String exceptionMessage) { +// return null; +// } + +} |