aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs/interfaceITDs/PackagePublic.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs/interfaceITDs/PackagePublic.java')
-rw-r--r--tests/bugs/interfaceITDs/PackagePublic.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/bugs/interfaceITDs/PackagePublic.java b/tests/bugs/interfaceITDs/PackagePublic.java
new file mode 100644
index 000000000..55366a035
--- /dev/null
+++ b/tests/bugs/interfaceITDs/PackagePublic.java
@@ -0,0 +1,23 @@
+interface PackagePublic {
+ //empty interface
+}
+
+
+//aspectj introduce a method to this interface
+ privileged aspect aspectWorld {
+ public abstract void PackagePublic.world();
+}
+
+//class test implements hello interface, and
+//method world
+ class test implements PackagePublic{
+
+ 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