aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs/interfaceITDs/PackagePackage.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs/interfaceITDs/PackagePackage.java')
-rw-r--r--tests/bugs/interfaceITDs/PackagePackage.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/bugs/interfaceITDs/PackagePackage.java b/tests/bugs/interfaceITDs/PackagePackage.java
new file mode 100644
index 000000000..012f31d94
--- /dev/null
+++ b/tests/bugs/interfaceITDs/PackagePackage.java
@@ -0,0 +1,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();
+ }
+} \ No newline at end of file