You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pr107953.java 335B

123456789101112131415161718
  1. import java.lang.annotation.*;
  2. import org.aspectj.lang.annotation.*;
  3. @Aspect
  4. public class pr107953 {
  5. @AfterThrowing(pointcut="execution(* Foo.*(..))",throwing="RuntimeException")
  6. public void missingBindingOfThrowingFormal() {
  7. System.out.println("failure");
  8. }
  9. }
  10. class Foo {
  11. void bar() {
  12. throw new RuntimeException();
  13. }
  14. }