From 8944ce6832ffd5d47f7c6c7bac7e67c003aaedcc Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 11 Jan 2007 10:32:41 +0000 Subject: [PATCH] test and fix for 168044 - processing complex self referential generic declarations --- tests/bugs160/pr168044/AbstractNode.java | 19 +++++++++++++++++++ .../systemtest/ajc160/Ajc160Tests.java | 1 + .../org/aspectj/systemtest/ajc160/ajc160.xml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 tests/bugs160/pr168044/AbstractNode.java diff --git a/tests/bugs160/pr168044/AbstractNode.java b/tests/bugs160/pr168044/AbstractNode.java new file mode 100644 index 000000000..bb1401fb4 --- /dev/null +++ b/tests/bugs160/pr168044/AbstractNode.java @@ -0,0 +1,19 @@ +public abstract class AbstractNode < SelfNode extends AbstractNode, DualNode extends AbstractNode > { +} + +class SubClass extends AbstractNode { +} + +class A extends AbstractNode { } +class B extends AbstractNode { } + +abstract class Mad +< + Id extends Comparable, + Np extends Mad, + Nt extends Mad, + SelfNode extends Mad, + DualNode extends Mad +> +{ +} diff --git a/tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java b/tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java index 980b1e601..a452fe4c4 100644 --- a/tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java @@ -21,6 +21,7 @@ import junit.framework.Test; */ public class Ajc160Tests extends org.aspectj.testing.XMLBasedAjcTestCase { + public void testComplexGenerics_pr168044() { runTest("complex generics - 1");} public void testIncorrectlyMarkingFieldTransient_pr168063() { runTest("incorrectly marking field transient");} public void testInheritedAnnotations_pr169706() { runTest("inherited annotations");} public void testGenericFieldNPE_pr165885() { runTest("generic field npe");} diff --git a/tests/src/org/aspectj/systemtest/ajc160/ajc160.xml b/tests/src/org/aspectj/systemtest/ajc160/ajc160.xml index fcb85ea0e..23816e58e 100644 --- a/tests/src/org/aspectj/systemtest/ajc160/ajc160.xml +++ b/tests/src/org/aspectj/systemtest/ajc160/ajc160.xml @@ -16,6 +16,11 @@ + + + + + -- 2.39.5