diff options
author | mwebster <mwebster> | 2006-10-04 13:35:09 +0000 |
---|---|---|
committer | mwebster <mwebster> | 2006-10-04 13:35:09 +0000 |
commit | 6b31b32ae338cdecea6e20aa87fe05ca0cc2fb57 (patch) | |
tree | b22499c9d10ffeb8779f88e2dbd7c5bff447ffba /tests/src/org | |
parent | 513564a9e5b5ae5d03c4f0547ee7823e903d3c52 (diff) | |
download | aspectj-6b31b32ae338cdecea6e20aa87fe05ca0cc2fb57.tar.gz aspectj-6b31b32ae338cdecea6e20aa87fe05ca0cc2fb57.zip |
Bug 132080 "LTW concrete-aspect definitions not exposed to weaver"
Diffstat (limited to 'tests/src/org')
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java | 16 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc153/ajc153.xml | 75 |
2 files changed, 91 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java b/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java index bef05f716..caef4be71 100644 --- a/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java @@ -134,6 +134,22 @@ public class Ajc153Tests extends org.aspectj.testing.XMLBasedAjcTestCase { public void testNPEWithCustomAgent_pr158005() { runTest("NPE with custom agent"); } + + public void testWeaveConcreteSubaspectWithAdvice_pr132080() { + runTest("Weave concrete sub-aspect with advice"); + } + + public void testWeaveConcreteSubaspectWithITD_pr132080() { + runTest("Weave concrete sub-aspect with ITD"); + } + + public void testWeaveConcreteSubaspectWithAroundClosure_pr132080() { + runTest("Weave concrete sub-aspect with around closure"); + } + + public void testWeaveConcreteSubaspectWithCflow_pr132080() { + runTest("Weave concrete sub-aspect with cflow"); + } public void testNoInvalidAbsoluteTypeNameWarning_pr156904_1() {runTest("ensure no invalidAbsoluteTypeName when do match - 1");} public void testNoInvalidAbsoluteTypeNameWarning_pr156904_2() {runTest("ensure no invalidAbsoluteTypeName when do match - 2");} diff --git a/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml b/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml index 652472843..9b64b631f 100644 --- a/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml +++ b/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml @@ -544,4 +544,79 @@ </ant> </ajc-test> + <ajc-test dir="bugs153/pr132080" + title="Weave concrete sub-aspect with advice" + keywords="aop.xml"> + <compile + files="HelloWorld.java" + > + </compile> + <compile files="AbstractSuperAspect.aj"/> + <compile files="TestAdvice.aj"/> + <run class="HelloWorld" ltw="aop-advice.xml"> + <stdout> + <line text="? ConcreteAspectWithAdvice()"/> + <line text="? void HelloWorld.main(String[])"/> + <line text="? HelloWorld()"/> + <line text="Hello World!"/> + </stdout> + </run> + </ajc-test> + + <ajc-test dir="bugs153/pr132080" + title="Weave concrete sub-aspect with ITD" + keywords="aop.xml"> +<!-- + <compile files="AbstractSuperAspectWithInterface.aj, TestInterface.java" options="-verbose"/> + <compile files="HelloWorld.java, TestITD.aj, ConcreteAspectWithITD.aj" options="-verbose"> + <message line="3" kind="warning" text="this affected type is not exposed to the weaver: AbstractSuperAspectWithInterface"/> + </compile> + <run class="HelloWorld"> + <stdout> + <line text="? void TestITD.interfaceMethod()"/> + <line text="? void HelloWorld.main(String[])"/> + <line text="Hello World!"/> + </stdout> + </run> +--> + <compile files="HelloWorld.java"/> + <compile files="AbstractSuperAspectWithInterface.aj, TestInterface.java"/> + <compile files="TestITD.aj"> + <message line="3" kind="warning" text="this affected type is not exposed to the weaver: AbstractSuperAspectWithInterface"/> + </compile> + <run class="HelloWorld" ltw="aop-itd.xml"> + <stdout> + <line text="? void TestITD.interfaceMethod()"/> + <line text="? void HelloWorld.main(String[])"/> + <line text="Hello World!"/> + </stdout> + </run> + + </ajc-test> + + <ajc-test dir="bugs153/pr132080" title="Weave concrete sub-aspect with around closure" + keywords="aop.xml"> + + <compile files="HelloWorld.java"/> + <compile files="AbstractSuperAspect.aj"/> + <compile files="TestAroundClosure.aj"/> + <run class="HelloWorld" ltw="aop-aroundclosure.xml"> + <stdout> + <line text="&rt; ConcreteAspectWithAroundClosure()"/> + <line text="< ConcreteAspectWithAroundClosure()"/> + <line text="? void HelloWorld.main(String[])"/> + <line text="&rt; HelloWorld()"/> + <line text="< HelloWorld()"/> + <line text="Hello World!"/> + </stdout> + </run> + </ajc-test> + + <ajc-test dir="bugs153/pr149096" title="Weave concrete sub-aspect with cflow"> + <compile files="SimpleTracing.aj" outjar="out.jar"/> + <compile files="TestMain.aj"/> + <run class="TestMain" ltw="aop-pr149096.xml"/> + </ajc-test> + + </suite>
\ No newline at end of file |