diff options
author | wisberg <wisberg> | 2002-12-16 18:51:06 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2002-12-16 18:51:06 +0000 |
commit | 144143c2970a1e874d74cdbd0f8c622d4282a3c3 (patch) | |
tree | b12383d3d9e76c7e1f25f7fbec83051ef17f81fb /tests/new/pr626 | |
parent | fafae443719b26159ab2d7dac1c9b46b5e00b671 (diff) | |
download | aspectj-144143c2970a1e874d74cdbd0f8c622d4282a3c3.tar.gz aspectj-144143c2970a1e874d74cdbd0f8c622d4282a3c3.zip |
initial version
Diffstat (limited to 'tests/new/pr626')
-rw-r--r-- | tests/new/pr626/a/Outer.java | 27 | ||||
-rw-r--r-- | tests/new/pr626/b/Foo.java | 11 |
2 files changed, 38 insertions, 0 deletions
diff --git a/tests/new/pr626/a/Outer.java b/tests/new/pr626/a/Outer.java new file mode 100644 index 000000000..413b36ba9 --- /dev/null +++ b/tests/new/pr626/a/Outer.java @@ -0,0 +1,27 @@ +package a; + +import org.aspectj.testing.Tester; + +/** @testcase PR#626 declared parent not defined in scope of target class declaration (CE in -usejavac only) */ +public abstract aspect Outer { + public static void main (String[] args) { + b.Foo foo = new b.Foo() { + public void run() { + Tester.event("run"); + } + }; + Inner i = (Inner) foo; + i.run(); + Tester.checkAllEvents(); + } + + static { + Tester.expectEvent("run"); + } + + protected interface Inner { + public void run(); + } + +} + diff --git a/tests/new/pr626/b/Foo.java b/tests/new/pr626/b/Foo.java new file mode 100644 index 000000000..3b40c6c74 --- /dev/null +++ b/tests/new/pr626/b/Foo.java @@ -0,0 +1,11 @@ +package b; + +import a.Outer; + +/** @testcase PR#626 declared parent not defined in scope of target class declaration (CE in -usejavac only) */ +public interface Foo { + public static aspect Specific extends Outer { + declare parents: Foo extends Inner; + } +} + |