From: aclement Date: Wed, 16 Jan 2008 23:50:46 +0000 (+0000) Subject: AspectJ6: some simple testcode X-Git-Tag: V1_6_0M1~52 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ec634bd937c182fb4762e67173021fa8c862cfdd;p=aspectj.git AspectJ6: some simple testcode --- diff --git a/tests/bugs150/pr119570/SimpleTest.java b/tests/bugs150/pr119570/SimpleTest.java new file mode 100644 index 000000000..56d0d4efa --- /dev/null +++ b/tests/bugs150/pr119570/SimpleTest.java @@ -0,0 +1,26 @@ +import java.util.ArrayList; + +interface INode { + INode getParent(); +} + + abstract aspect NodeImpl { + declare parents : Child implements INode; + declare parents : Parent implements INode; + public final INode INode.getParent() { + return null; + } +} + +public class SimpleTest { + + public static void main(String[] args) { + Tag tag1 = new Tag(); + Tag tag2 = new Tag(); + tag1.getParent(); + } + +} +class Tag { } + +aspect X extends NodeImpl {}