From 68864bab9569c03dfe16491a69d55d36ef7d4bad Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 7 Apr 2008 06:35:33 +0000 Subject: [PATCH] 225916: test and fix: when pipelining use the binding to determine anonymity --- tests/bugs160/pr225916/Test.java | 8 ++++++++ tests/bugs160/pr225916/TestAspect.java | 10 ++++++++++ tests/bugs160/pr225916/TestMBean.java | 6 ++++++ .../src/org/aspectj/systemtest/ajc160/Ajc160Tests.java | 3 +++ tests/src/org/aspectj/systemtest/ajc160/ajc160.xml | 6 ++++++ 5 files changed, 33 insertions(+) create mode 100644 tests/bugs160/pr225916/Test.java create mode 100644 tests/bugs160/pr225916/TestAspect.java create mode 100644 tests/bugs160/pr225916/TestMBean.java diff --git a/tests/bugs160/pr225916/Test.java b/tests/bugs160/pr225916/Test.java new file mode 100644 index 000000000..f736ece95 --- /dev/null +++ b/tests/bugs160/pr225916/Test.java @@ -0,0 +1,8 @@ +package test.jmx; + +public class Test implements TestMBean { + + public String test() { + return "test"; + } +} diff --git a/tests/bugs160/pr225916/TestAspect.java b/tests/bugs160/pr225916/TestAspect.java new file mode 100644 index 000000000..a25ef42d6 --- /dev/null +++ b/tests/bugs160/pr225916/TestAspect.java @@ -0,0 +1,10 @@ +package test.aspects; + +public aspect TestAspect { + + pointcut boundaries(): execution (public * *..*MBean+.*(..)); + + Object around(): boundaries() { + return proceed(); + } +} diff --git a/tests/bugs160/pr225916/TestMBean.java b/tests/bugs160/pr225916/TestMBean.java new file mode 100644 index 000000000..e75ad0442 --- /dev/null +++ b/tests/bugs160/pr225916/TestMBean.java @@ -0,0 +1,6 @@ +package test.jmx; + +public interface TestMBean { + + String test(); +} diff --git a/tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java b/tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java index 5c5fc64e9..7d20871db 100644 --- a/tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java @@ -22,6 +22,9 @@ import org.aspectj.testing.XMLBasedAjcTestCase; public class Ajc160Tests extends org.aspectj.testing.XMLBasedAjcTestCase { // AspectJ1.6.0rc1 + public void testPipelineCompilationAnonymous_pr225916() { + runTest("pipeline compilation and anonymous type"); + } public void testGenericITDs_pr214994() { runTest("generic itd"); } diff --git a/tests/src/org/aspectj/systemtest/ajc160/ajc160.xml b/tests/src/org/aspectj/systemtest/ajc160/ajc160.xml index bda4a19c8..eb8f28b06 100644 --- a/tests/src/org/aspectj/systemtest/ajc160/ajc160.xml +++ b/tests/src/org/aspectj/systemtest/ajc160/ajc160.xml @@ -4,6 +4,12 @@ + + + + + + -- 2.39.5