aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhugunin <jhugunin>2003-01-08 02:17:09 +0000
committerjhugunin <jhugunin>2003-01-08 02:17:09 +0000
commit29dccb0d7ec7786bb219cbdf02e3bb81fcd843bb (patch)
tree2f61bfc10a50305e305d762f468d2ff59b77a705
parent919922324bf209b78d0ded51befb41599abe673c (diff)
downloadaspectj-29dccb0d7ec7786bb219cbdf02e3bb81fcd843bb.tar.gz
aspectj-29dccb0d7ec7786bb219cbdf02e3bb81fcd843bb.zip
added version not in 'aspect' package
-rw-r--r--tests/new/PR852/aspectPack/Aspect.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/new/PR852/aspectPack/Aspect.java b/tests/new/PR852/aspectPack/Aspect.java
new file mode 100644
index 000000000..a21581432
--- /dev/null
+++ b/tests/new/PR852/aspectPack/Aspect.java
@@ -0,0 +1,15 @@
+package aspectPack;
+
+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();
+ }
+}