diff options
author | aclement <aclement> | 2004-08-20 13:25:33 +0000 |
---|---|---|
committer | aclement <aclement> | 2004-08-20 13:25:33 +0000 |
commit | bbc409e17b6781826e86c3548790668553a8636b (patch) | |
tree | d9c9371c1d7fc1f190e450f098381a4a912d2d4f /tests/bugs | |
parent | 06f6b999f67331be0ea6a0b55025195b3d252deb (diff) | |
download | aspectj-bbc409e17b6781826e86c3548790668553a8636b.tar.gz aspectj-bbc409e17b6781826e86c3548790668553a8636b.zip |
Fix for Bugzilla Bug 70794
The introduction on interface causes the interface implementation class error
Diffstat (limited to 'tests/bugs')
-rw-r--r-- | tests/bugs/interfaceITDs/PackagePackage.java | 27 | ||||
-rw-r--r-- | tests/bugs/interfaceITDs/PackagePublic.java | 23 | ||||
-rw-r--r-- | tests/bugs/interfaceITDs/PublicPackage.java | 23 | ||||
-rw-r--r-- | tests/bugs/interfaceITDs/PublicPublic.java | 23 |
4 files changed, 96 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 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 diff --git a/tests/bugs/interfaceITDs/PublicPackage.java b/tests/bugs/interfaceITDs/PublicPackage.java new file mode 100644 index 000000000..ec79ad2c7 --- /dev/null +++ b/tests/bugs/interfaceITDs/PublicPackage.java @@ -0,0 +1,23 @@ +public interface PublicPackage { + //empty interface +} + + +//aspectj introduce a method to this interface +privileged aspect aspectWorld { + abstract void PublicPackage.world(); +} + +//class test implements hello interface, and +//method world + class test implements PublicPackage { + + 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 diff --git a/tests/bugs/interfaceITDs/PublicPublic.java b/tests/bugs/interfaceITDs/PublicPublic.java new file mode 100644 index 000000000..2ebad56fd --- /dev/null +++ b/tests/bugs/interfaceITDs/PublicPublic.java @@ -0,0 +1,23 @@ +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(); + } +}
\ No newline at end of file |