org.aspectj/tests/bugs/interfaceITDs/PublicPublic.java
aclement bbc409e17b Fix for Bugzilla Bug 70794
The introduction on interface causes the interface implementation class error
2004-08-20 13:25:33 +00:00

23 lines
426 B
Java

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();
}
}