summaryrefslogtreecommitdiffstats
path: root/tests/bugs154
diff options
context:
space:
mode:
authoraclement <aclement>2007-12-02 09:24:51 +0000
committeraclement <aclement>2007-12-02 09:24:51 +0000
commit9de03b75977599b12208c93c20cfc50fa85d7e22 (patch)
tree4a7d95b316ef8c277454810f7d33f332d9decf5a /tests/bugs154
parent26873928c3b1e3739c5376ad35075f5477cc452e (diff)
downloadaspectj-9de03b75977599b12208c93c20cfc50fa85d7e22.tar.gz
aspectj-9de03b75977599b12208c93c20cfc50fa85d7e22.zip
tests for 211674
Diffstat (limited to 'tests/bugs154')
-rw-r--r--tests/bugs154/pr211674/Test.java29
-rw-r--r--tests/bugs154/pr211674/Test2.java27
2 files changed, 56 insertions, 0 deletions
diff --git a/tests/bugs154/pr211674/Test.java b/tests/bugs154/pr211674/Test.java
new file mode 100644
index 000000000..0cb1ed514
--- /dev/null
+++ b/tests/bugs154/pr211674/Test.java
@@ -0,0 +1,29 @@
+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, Tracing tracing,Throwable t) {
+ }
+
+}
+
+@Retention(RetentionPolicy.RUNTIME)
+@interface Tracing { }
+
+public class Test {
+
+ @Tracing
+ public void m() {}
+
+
+ public static void main(String []argv) {}
+
+
+}
+
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) {}
+
+}
+