From ec634bd937c182fb4762e67173021fa8c862cfdd Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 16 Jan 2008 23:50:46 +0000 Subject: [PATCH] AspectJ6: some simple testcode --- tests/bugs150/pr119570/SimpleTest.java | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 tests/bugs150/pr119570/SimpleTest.java 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 {} -- 2.39.5