summaryrefslogtreecommitdiffstats
path: root/tests/new/PR852
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/PR852
parentfafae443719b26159ab2d7dac1c9b46b5e00b671 (diff)
downloadaspectj-144143c2970a1e874d74cdbd0f8c622d4282a3c3.tar.gz
aspectj-144143c2970a1e874d74cdbd0f8c622d4282a3c3.zip
initial version
Diffstat (limited to 'tests/new/PR852')
-rw-r--r--tests/new/PR852/aspect/Aspect.java15
-rw-r--r--tests/new/PR852/target/SubClass.java4
-rw-r--r--tests/new/PR852/target/SuperClass.java8
3 files changed, 27 insertions, 0 deletions
diff --git a/tests/new/PR852/aspect/Aspect.java b/tests/new/PR852/aspect/Aspect.java
new file mode 100644
index 000000000..2e9705455
--- /dev/null
+++ b/tests/new/PR852/aspect/Aspect.java
@@ -0,0 +1,15 @@
+package aspect;
+
+import target.SuperClass;
+import target.SubClass;
+
+/** @testcase PR#852 declaring method on superclass and subclass */
+public aspect Aspect {
+ void SuperClass.test() { System.out.println("SuperClass ok");}
+ void SubClass.test() { System.out.println("SubClass ok");}
+ //public void SuperClass+.callTest() { test(); }
+ public static void main (String[] args) {
+ new SuperClass().test();
+ new SubClass().test();
+ }
+}
diff --git a/tests/new/PR852/target/SubClass.java b/tests/new/PR852/target/SubClass.java
new file mode 100644
index 000000000..1d2f36906
--- /dev/null
+++ b/tests/new/PR852/target/SubClass.java
@@ -0,0 +1,4 @@
+package target;
+
+public class SubClass extends SuperClass {
+} \ No newline at end of file
diff --git a/tests/new/PR852/target/SuperClass.java b/tests/new/PR852/target/SuperClass.java
new file mode 100644
index 000000000..da4d3ce0f
--- /dev/null
+++ b/tests/new/PR852/target/SuperClass.java
@@ -0,0 +1,8 @@
+package target;
+
+public class SuperClass {
+ /*void test() {
+ System.err.println("SuperClass.test()");
+ }*/
+}
+