]> source.dussan.org Git - aspectj.git/commitdiff
134425: testcode
authoraclement <aclement>
Mon, 16 Jun 2008 23:56:43 +0000 (23:56 +0000)
committeraclement <aclement>
Mon, 16 Jun 2008 23:56:43 +0000 (23:56 +0000)
tests/bugs161/pr134425/Base.java [new file with mode: 0644]
tests/bugs161/pr134425/Derived.java [new file with mode: 0644]

diff --git a/tests/bugs161/pr134425/Base.java b/tests/bugs161/pr134425/Base.java
new file mode 100644 (file)
index 0000000..1ccf37e
--- /dev/null
@@ -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 (file)
index 0000000..24e9717
--- /dev/null
@@ -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();
+    }
+}