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.

AspectInitError.java 518B

1234567891011121314151617181920212223
  1. /** Bugzilla Bug 34206
  2. before():execution(new(..)) does not throw NoAspectBoundException */
  3. public class AspectInitError {
  4. public static void main(String[] args) {
  5. //Watchcall.aspectOf();
  6. AspectInitError c = new AspectInitError();
  7. }
  8. }
  9. aspect Watchcall {
  10. pointcut myConstructor(): execution(new(..));
  11. before(): myConstructor() {
  12. System.err.println("Entering Constructor");
  13. }
  14. after(): myConstructor() {
  15. System.err.println("Leaving Constructor");
  16. }
  17. }