aboutsummaryrefslogtreecommitdiffstats
path: root/tests/new/pr626
diff options
context:
space:
mode:
authorwisberg <wisberg>2002-12-16 18:51:06 +0000
committerwisberg <wisberg>2002-12-16 18:51:06 +0000
commit144143c2970a1e874d74cdbd0f8c622d4282a3c3 (patch)
treeb12383d3d9e76c7e1f25f7fbec83051ef17f81fb /tests/new/pr626
parentfafae443719b26159ab2d7dac1c9b46b5e00b671 (diff)
downloadaspectj-144143c2970a1e874d74cdbd0f8c622d4282a3c3.tar.gz
aspectj-144143c2970a1e874d74cdbd0f8c622d4282a3c3.zip
initial version
Diffstat (limited to 'tests/new/pr626')
-rw-r--r--tests/new/pr626/a/Outer.java27
-rw-r--r--tests/new/pr626/b/Foo.java11
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;
+ }
+}
+