aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs/AspectInitError.java
blob: 3a46b9c5ab059cbf37ef6ede07f1cf85f8c0431c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/** Bugzilla Bug 34206  
   before():execution(new(..)) does not throw NoAspectBoundException   */
public class AspectInitError {
	public static void main(String[] args) {
		//Watchcall.aspectOf();
              AspectInitError c = new AspectInitError();
          }

}

aspect Watchcall {
      pointcut myConstructor(): execution(new(..));

  before(): myConstructor() {
          System.err.println("Entering Constructor");
  }

  after(): myConstructor() {
      System.err.println("Leaving Constructor");
  }
}