From 1b7aa6a076390963293aad9c716880ddd2821442 Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 10 Aug 2006 10:31:23 +0000 Subject: [PATCH] testcode for problem found whilst looking into 153380 --- tests/bugs153/pr153380/case1/Ann.java | 4 ++++ tests/bugs153/pr153380/case1/Base.java | 2 ++ tests/bugs153/pr153380/case1/BaseImpl.java | 2 ++ tests/bugs153/pr153380/case1/I1.java | 1 + tests/bugs153/pr153380/case1/Mixin.java | 2 ++ tests/bugs153/pr153380/case1/Runner.java | 9 +++++++++ tests/bugs153/pr153380/case1/X.aj | 5 +++++ tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java | 1 + tests/src/org/aspectj/systemtest/ajc153/ajc153.xml | 7 +++++++ 9 files changed, 33 insertions(+) create mode 100644 tests/bugs153/pr153380/case1/Ann.java create mode 100644 tests/bugs153/pr153380/case1/Base.java create mode 100644 tests/bugs153/pr153380/case1/BaseImpl.java create mode 100644 tests/bugs153/pr153380/case1/I1.java create mode 100644 tests/bugs153/pr153380/case1/Mixin.java create mode 100644 tests/bugs153/pr153380/case1/Runner.java create mode 100644 tests/bugs153/pr153380/case1/X.aj diff --git a/tests/bugs153/pr153380/case1/Ann.java b/tests/bugs153/pr153380/case1/Ann.java new file mode 100644 index 000000000..618402548 --- /dev/null +++ b/tests/bugs153/pr153380/case1/Ann.java @@ -0,0 +1,4 @@ +import java.lang.retention.*; + +@Retention(RetentionPolicy.RUNTIME) +@interface Ann {} diff --git a/tests/bugs153/pr153380/case1/Base.java b/tests/bugs153/pr153380/case1/Base.java new file mode 100644 index 000000000..57ac85b7c --- /dev/null +++ b/tests/bugs153/pr153380/case1/Base.java @@ -0,0 +1,2 @@ +@Ann +public interface Base {} diff --git a/tests/bugs153/pr153380/case1/BaseImpl.java b/tests/bugs153/pr153380/case1/BaseImpl.java new file mode 100644 index 000000000..8622a1e5e --- /dev/null +++ b/tests/bugs153/pr153380/case1/BaseImpl.java @@ -0,0 +1,2 @@ +@Ann +public class BaseImpl implements Base {} diff --git a/tests/bugs153/pr153380/case1/I1.java b/tests/bugs153/pr153380/case1/I1.java new file mode 100644 index 000000000..518950d5b --- /dev/null +++ b/tests/bugs153/pr153380/case1/I1.java @@ -0,0 +1 @@ +interface I1 {} diff --git a/tests/bugs153/pr153380/case1/Mixin.java b/tests/bugs153/pr153380/case1/Mixin.java new file mode 100644 index 000000000..7ce9c1053 --- /dev/null +++ b/tests/bugs153/pr153380/case1/Mixin.java @@ -0,0 +1,2 @@ +interface Mixin {public void m();} + diff --git a/tests/bugs153/pr153380/case1/Runner.java b/tests/bugs153/pr153380/case1/Runner.java new file mode 100644 index 000000000..5ca333533 --- /dev/null +++ b/tests/bugs153/pr153380/case1/Runner.java @@ -0,0 +1,9 @@ +public class Runner { + public static void main(String []argv) { + new BaseImpl().m(); + } + + static aspect A{ + before(): call(* *(..)) {} + } +} diff --git a/tests/bugs153/pr153380/case1/X.aj b/tests/bugs153/pr153380/case1/X.aj new file mode 100644 index 000000000..5fdffda55 --- /dev/null +++ b/tests/bugs153/pr153380/case1/X.aj @@ -0,0 +1,5 @@ +public aspect X { + declare parents: @Ann * extends I1,Mixin; + int Mixin.i; + public void Mixin.m() {} +} diff --git a/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java b/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java index a39c20242..afae345b9 100644 --- a/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java @@ -27,6 +27,7 @@ public class Ajc153Tests extends org.aspectj.testing.XMLBasedAjcTestCase { // public void testArgnamesAndJavac_pr148381() { runTest("argNames and javac");} // public void testCFlowXMLAspectLTW_pr149096() { runTest("cflow xml concrete aspect"); } // public void testAmbiguousBinding_pr121805() { runTest("ambiguous binding");} + public void testPipeliningProblemWithAnnotationsDecp_pr153380_1() { runTest("pipelining decps");} public void testUnwantedPointcutWarning_pr148219() { runTest("unwanted warning for pointcut");} public void testDecpAndCflowadderMungerClash_pr152631() { runTest("decp and cflowadder munger clash");} public void testGenericInheritanceDecp_pr150095() { runTest("generics, inheritance and decp");} diff --git a/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml b/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml index 961c4010d..59bacc5b4 100644 --- a/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml +++ b/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml @@ -16,6 +16,13 @@ + + + + + + + -- 2.39.5