diff options
author | aclement <aclement> | 2008-06-16 23:56:43 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-06-16 23:56:43 +0000 |
commit | 26cff8dd6f0a01ef0c442f20f505d9a2655ea772 (patch) | |
tree | d8b40805e1b2e5b7b3924f3328fb0070d505a983 | |
parent | 006eaf6886b36c289c7bc74b89016c277ac91051 (diff) | |
download | aspectj-26cff8dd6f0a01ef0c442f20f505d9a2655ea772.tar.gz aspectj-26cff8dd6f0a01ef0c442f20f505d9a2655ea772.zip |
134425: testcode
-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(); + } +} |