From 6fc9b90ec1ede8f634327bb4f53dfd73a0ee9ca4 Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 10 Jun 2008 03:00:01 +0000 Subject: [PATCH] 199130: test and fix - checking aspect bounds for generic aspects --- tests/bugs161/pr199130/Complex.java | 5 +++++ tests/bugs161/pr199130/Complex2.java | 15 +++++++++++++++ .../aspectj/systemtest/ajc161/Ajc161Tests.java | 6 ++++-- .../org/aspectj/systemtest/ajc161/ajc161.xml | 17 +++++++++++++---- 4 files changed, 37 insertions(+), 6 deletions(-) create mode 100644 tests/bugs161/pr199130/Complex2.java diff --git a/tests/bugs161/pr199130/Complex.java b/tests/bugs161/pr199130/Complex.java index 36e23645e..f82ea6e34 100644 --- a/tests/bugs161/pr199130/Complex.java +++ b/tests/bugs161/pr199130/Complex.java @@ -2,3 +2,8 @@ interface A {} interface B {} abstract aspect Parent< V extends A > {} abstract aspect Child< V extends A & B > extends Parent< V > {} + +public class Complex { + public static void main(String [] argv) { + } +} diff --git a/tests/bugs161/pr199130/Complex2.java b/tests/bugs161/pr199130/Complex2.java new file mode 100644 index 000000000..8d2933530 --- /dev/null +++ b/tests/bugs161/pr199130/Complex2.java @@ -0,0 +1,15 @@ +interface A {} +interface B {} +abstract aspect Parent< V extends A > {} +abstract aspect Child< V extends A & B > extends Parent< V > {} + +aspect Foo extends Child {} + +class AImpl implements A {} + +class AExtension extends AImpl implements B {} + +public class Complex2 { + public static void main(String [] argv) { + } +} diff --git a/tests/src/org/aspectj/systemtest/ajc161/Ajc161Tests.java b/tests/src/org/aspectj/systemtest/ajc161/Ajc161Tests.java index fe45d6daf..34db793c2 100644 --- a/tests/src/org/aspectj/systemtest/ajc161/Ajc161Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc161/Ajc161Tests.java @@ -23,8 +23,10 @@ import org.aspectj.testing.XMLBasedAjcTestCase; public class Ajc161Tests extends org.aspectj.testing.XMLBasedAjcTestCase { // AspectJ1.6.1 - //public void testComplexBoundsGenericAspect_pr199130_1() { runTest("complex bounds on generic aspect - 1");} - //public void testComplexBoundsGenericAspect_pr199130_2() { runTest("complex bounds on generic aspect - 2");} +// public void testFinalStringsAnnotationPointcut_pr174385() { runTest("static strings in annotation pointcuts");} + public void testComplexBoundsGenericAspect_pr199130_1() { runTest("complex bounds on generic aspect - 1");} + public void testComplexBoundsGenericAspect_pr199130_2() { runTest("complex bounds on generic aspect - 2");} + public void testComplexBoundsGenericAspect_pr199130_3() { runTest("complex bounds on generic aspect - 3");} public void testGenericAspectAroundAdvice_pr226201() { runTest("generic aspect around advice");} public void testCrazyGenericsInnerTypes_pr235829() { runTest("crazy generics and inner types");} public void testAnnotationExposureGenerics_pr235597() { runTest("annotation exposure and generics");} diff --git a/tests/src/org/aspectj/systemtest/ajc161/ajc161.xml b/tests/src/org/aspectj/systemtest/ajc161/ajc161.xml index f4bb6f8a3..1eac07aba 100644 --- a/tests/src/org/aspectj/systemtest/ajc161/ajc161.xml +++ b/tests/src/org/aspectj/systemtest/ajc161/ajc161.xml @@ -3,7 +3,12 @@ - + + + + + + @@ -15,18 +20,22 @@ + + + + + + - - - + -- 2.39.5