mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-09-13 15:45:38 +02:00
bbc409e17b
The introduction on interface causes the interface implementation class error
27 lines
454 B
Java
27 lines
454 B
Java
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();
|
|
}
|
|
} |