diff options
-rw-r--r-- | tests/bugs161/pr134425/Base.java | 8 | ||||
-rw-r--r-- | tests/bugs161/pr134425/Derived.java | 14 |
2 files changed, 22 insertions, 0 deletions
diff --git a/tests/bugs161/pr134425/Base.java b/tests/bugs161/pr134425/Base.java new file mode 100644 index 000000000..1ccf37ee1 --- /dev/null +++ b/tests/bugs161/pr134425/Base.java @@ -0,0 +1,8 @@ +package pkg; + +public aspect Base { + public interface BaseBean {} + public String BaseBean.describe() { + return "Base holds "+super.toString(); + } +} diff --git a/tests/bugs161/pr134425/Derived.java b/tests/bugs161/pr134425/Derived.java new file mode 100644 index 000000000..24e971790 --- /dev/null +++ b/tests/bugs161/pr134425/Derived.java @@ -0,0 +1,14 @@ +package pkg; + +import pkg.Base.BaseBean; + +public aspect Derived { + public interface DerivedBean extends BaseBean {} + + public String DerivedBean.describe() { + return "Derived state plus "+super.describe(); + } + public static void main(String args[]) { + new DerivedBean() {}.describe(); + } +} |