aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs163/pr258653/staticinit.java
blob: 4d45ebeca99d8965ac3593140291ff4e78d4f635 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;

@Aspect
class staticinit {
	@After("staticinitialization(MyType)")
	public void print(){
		System.out.println("INITIALIZED");		
	}
}

//public
class MyType {
	public static void main(){
		new MyType();
	}
}