aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs153/pr149560/AnnStyle.java
blob: 1941e6ca7118770ea18ce9215c3253b5f20f9f04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import org.aspectj.lang.annotation.*;
import org.aspectj.lang.*;

@Aspect
class MyAspect {
  @After("staticinitialization(*)")
  public void x(JoinPoint.StaticPart thisJoinPointStaticPart) {
    System.out.println("after initialization "+thisJoinPointStaticPart);
  }
}

public aspect AnnStyle {

  static {
  }

  public static void main(String []argv) {
	    System.out.println("InstanceExists?"+Aspects.hasAspect(MyAspect.class));
  }
}