diff options
author | aclement <aclement> | 2008-01-16 23:50:46 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-01-16 23:50:46 +0000 |
commit | ec634bd937c182fb4762e67173021fa8c862cfdd (patch) | |
tree | 68a2b1253a0236c747eb2d42fb95c4cbac0960da | |
parent | 13ee864beeae3ddc9043352bdcb9421db96a8bb1 (diff) | |
download | aspectj-ec634bd937c182fb4762e67173021fa8c862cfdd.tar.gz aspectj-ec634bd937c182fb4762e67173021fa8c862cfdd.zip |
AspectJ6: some simple testcode
-rw-r--r-- | tests/bugs150/pr119570/SimpleTest.java | 26 |
1 files changed, 26 insertions, 0 deletions
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<P, C> { + INode<P, C> getParent(); +} + + abstract aspect NodeImpl<Parent, Child> { + declare parents : Child implements INode<Parent, Child>; + declare parents : Parent implements INode<Parent, Child>; + public final INode<Parent, Child> 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<Tag,Tag> {} |