aboutsummaryrefslogtreecommitdiffstats
path: root/tests/options/injars/simple/DecParents.java
diff options
context:
space:
mode:
authorjhugunin <jhugunin>2003-04-11 00:48:49 +0000
committerjhugunin <jhugunin>2003-04-11 00:48:49 +0000
commit039d04d39da57d5ef47193509a364d9ceed9b98e (patch)
tree98870c277b2da902ef8deda9f20b18aad0247b91 /tests/options/injars/simple/DecParents.java
parent11b3b0740b66f1d962b5179ece2f2d23e88f040b (diff)
downloadaspectj-039d04d39da57d5ef47193509a364d9ceed9b98e.tar.gz
aspectj-039d04d39da57d5ef47193509a364d9ceed9b98e.zip
fixing declare parents problems
Diffstat (limited to 'tests/options/injars/simple/DecParents.java')
-rw-r--r--tests/options/injars/simple/DecParents.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/options/injars/simple/DecParents.java b/tests/options/injars/simple/DecParents.java
new file mode 100644
index 000000000..ecbf5f1e3
--- /dev/null
+++ b/tests/options/injars/simple/DecParents.java
@@ -0,0 +1,23 @@
+
+
+import org.aspectj.testing.Tester;
+
+public aspect DecParents {
+ private interface I {
+ public abstract String doit();
+ }
+
+ public String I.doit() {
+ return "foo";
+ }
+
+ declare parents: Main implements I;
+
+ before(): execution(void Main.main(..)) {
+ }
+
+ public static void main(String[] args) {
+ I i = new Main();
+ System.out.println("Main: " + i.doit());
+ }
+} \ No newline at end of file