--- /dev/null
+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) {}
+
+
+}
+
--- /dev/null
+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) {}
+
+}
+
// //parser.registerPointcutDesignatorHandler(beanHandler);
// runTest("new pointcut designators in a reference pointcut");
// }
+ //public void testAfterThrowingAnnotationStyle_pr211674_1() { runTest("after throwing annotation style problem - 1");}
+ //public void testAfterThrowingAnnotationStyle_pr211674_2() { runTest("after throwing annotation style problem - 2");}
+
public void testNPEWithMissingAtAspectAnnotationInPointcutLibrary_pr162539_1() { runTest("NPE with missing @aspect annotation in pointcut library - 1"); }
public void testNPEWithMissingAtAspectAnnotationInPointcutLibrary_pr162539_2() { runTest("NPE with missing @aspect annotation in pointcut library - 2"); }
<!-- AspectJ v1.6.0 Tests -->
<suite>
+ <ajc-test dir="bugs154/pr211674" title="after throwing annotation style problem - 1">
+ <compile options="-1.5" files="Test.java"/>
+ <run class="Test"/>
+ </ajc-test>
+
+ <ajc-test dir="bugs154/pr211674" title="after throwing annotation style problem - 2">
+ <compile options="-1.5" files="Test2.java"/>
+ <run class="Test2"/>
+ </ajc-test>
+
<ajc-test dir="bugs154/pr194314" title="broken lvt for woven at aspectj around advice">
<compile options="-1.5" files="test/IService.java,test/Main.java,test/Service.java,test/ServiceInterceptor.java"/>
</ajc-test>