aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs160/pr225916/Test.java8
-rw-r--r--tests/bugs160/pr225916/TestAspect.java10
-rw-r--r--tests/bugs160/pr225916/TestMBean.java6
-rw-r--r--tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java3
-rw-r--r--tests/src/org/aspectj/systemtest/ajc160/ajc160.xml6
5 files changed, 33 insertions, 0 deletions
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 @@
<suite>
+ <ajc-test dir="bugs160/pr225916" title="pipeline compilation and anonymous type">
+ <compile files="Test.java TestMBean.java TestAspect.java" options="-showWeaveInfo">
+ <message kind="weave" text="Join point 'method-execution(java.lang.String test.jmx.Test.test())' in Type"/>
+ </compile>
+ </ajc-test>
+
<ajc-test dir="bugs160/pr214994" title="generic itd">
<compile files="Broke.java" options="-1.5"/>
</ajc-test>