aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs/interfaceITDs/PackagePackage.java
blob: 012f31d94725e2f137a50bc8aba9e0b196607790 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
interface PackagePackage {
	//empty interface
}


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

}

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