diff options
-rw-r--r-- | tests/new/PR852/aspectPack/Aspect.java | 15 |
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(); + } +} |