From: jhugunin Date: Wed, 8 Jan 2003 02:17:09 +0000 (+0000) Subject: added version not in 'aspect' package X-Git-Tag: V_1_1_b5~127 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=29dccb0d7ec7786bb219cbdf02e3bb81fcd843bb;p=aspectj.git added version not in 'aspect' package --- 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(); + } +}