summaryrefslogtreecommitdiffstats
path: root/tests/bugs154/pr211674/Test2.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs154/pr211674/Test2.java')
-rw-r--r--tests/bugs154/pr211674/Test2.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/bugs154/pr211674/Test2.java b/tests/bugs154/pr211674/Test2.java
new file mode 100644
index 000000000..791eabfa3
--- /dev/null
+++ b/tests/bugs154/pr211674/Test2.java
@@ -0,0 +1,27 @@
+import java.lang.annotation.*;
+import org.aspectj.lang.annotation.*;
+import org.aspectj.lang.*;
+
+@Aspect class A {
+
+ @Pointcut("execution(@Tracing * *(..)) && @annotation(tracing)")
+ void annotatedMethods(Tracing tracing) { }
+
+ @AfterThrowing(pointcut = "annotatedMethods(tracing)", throwing = "t")
+ public void logException(JoinPoint thisJoinPoint, Throwable t,Tracing tracing) {
+ }
+
+}
+
+@Retention(RetentionPolicy.RUNTIME)
+@interface Tracing { }
+
+public class Test2 {
+
+ @Tracing
+ public void m() {}
+
+ public static void main(String []argv) {}
+
+}
+