]> source.dussan.org Git - aspectj.git/commitdiff
added version not in 'aspect' package
authorjhugunin <jhugunin>
Wed, 8 Jan 2003 02:17:09 +0000 (02:17 +0000)
committerjhugunin <jhugunin>
Wed, 8 Jan 2003 02:17:09 +0000 (02:17 +0000)
tests/new/PR852/aspectPack/Aspect.java [new file with mode: 0644]

diff --git a/tests/new/PR852/aspectPack/Aspect.java b/tests/new/PR852/aspectPack/Aspect.java
new file mode 100644 (file)
index 0000000..a215814
--- /dev/null
@@ -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();
+    }
+}