summaryrefslogtreecommitdiffstats
path: root/tests/bugs/interfaceITDs/PublicPublic.java
blob: 2ebad56fdb74f6540a38402a7e953e48aa45adb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
public interface PublicPublic {
	//empty interface
}


//aspectj introduce a method to this interface
privileged aspect aspectWorld {
	public abstract void PublicPublic.world();
}

//class test implements hello interface, and
//method world
 class test implements PublicPublic {
    
	public void world() {
		 System.out.println("hello");
	}
	
	public static void main(String[] args) {
		test t = new test();
		t.world();
	}
}