diff options
author | jhugunin <jhugunin> | 2003-04-10 22:32:40 +0000 |
---|---|---|
committer | jhugunin <jhugunin> | 2003-04-10 22:32:40 +0000 |
commit | 11b3b0740b66f1d962b5179ece2f2d23e88f040b (patch) | |
tree | a684fa216d32fb44c5461de5947698abd86f59a5 /tests/bugs/interInherit | |
parent | 808bae83b3d5f37de4b39a2380db2782919a5f8a (diff) | |
download | aspectj-11b3b0740b66f1d962b5179ece2f2d23e88f040b.tar.gz aspectj-11b3b0740b66f1d962b5179ece2f2d23e88f040b.zip |
test for
Bugzilla Bug 35725
Inter type declaration to base class not seen by derived class
Diffstat (limited to 'tests/bugs/interInherit')
-rw-r--r-- | tests/bugs/interInherit/a_impl/AImpl.java | 8 | ||||
-rw-r--r-- | tests/bugs/interInherit/a_impl/Af.java | 12 | ||||
-rw-r--r-- | tests/bugs/interInherit/a_intf/A.java | 7 | ||||
-rw-r--r-- | tests/bugs/interInherit/b_impl/BImpl.java | 20 | ||||
-rw-r--r-- | tests/bugs/interInherit/b_intf/B.java | 10 |
5 files changed, 57 insertions, 0 deletions
diff --git a/tests/bugs/interInherit/a_impl/AImpl.java b/tests/bugs/interInherit/a_impl/AImpl.java new file mode 100644 index 000000000..65c9725ca --- /dev/null +++ b/tests/bugs/interInherit/a_impl/AImpl.java @@ -0,0 +1,8 @@ +package a_impl; + +import a_intf.A; + +public class AImpl + implements A +{ +} diff --git a/tests/bugs/interInherit/a_impl/Af.java b/tests/bugs/interInherit/a_impl/Af.java new file mode 100644 index 000000000..f7c0d158d --- /dev/null +++ b/tests/bugs/interInherit/a_impl/Af.java @@ -0,0 +1,12 @@ +package a_impl; + +import a_intf.A; + +aspect Af +{ + public A AImpl.f() + { + System.out.println( "f called" ); + return null; + } +} diff --git a/tests/bugs/interInherit/a_intf/A.java b/tests/bugs/interInherit/a_intf/A.java new file mode 100644 index 000000000..14e200d2e --- /dev/null +++ b/tests/bugs/interInherit/a_intf/A.java @@ -0,0 +1,7 @@ + +package a_intf; + +public interface A +{ + A f(); +} diff --git a/tests/bugs/interInherit/b_impl/BImpl.java b/tests/bugs/interInherit/b_impl/BImpl.java new file mode 100644 index 000000000..7d0f7a934 --- /dev/null +++ b/tests/bugs/interInherit/b_impl/BImpl.java @@ -0,0 +1,20 @@ +package b_impl; + +import a_impl.AImpl; +import b_intf.B; + +public class BImpl + extends AImpl + implements B +{ + public B g() + { + System.out.println( "g called" ); + return null; + } + + public static void main(String[] args) { + new BImpl().g(); + new BImpl().f(); + } +} diff --git a/tests/bugs/interInherit/b_intf/B.java b/tests/bugs/interInherit/b_intf/B.java new file mode 100644 index 000000000..d21644dbd --- /dev/null +++ b/tests/bugs/interInherit/b_intf/B.java @@ -0,0 +1,10 @@ + +package b_intf; + +import a_intf.A; + +public interface B + extends A +{ + B g(); +} |