]> source.dussan.org Git - aspectj.git/commitdiff
225916: test and fix: when pipelining use the binding to determine anonymity
authoraclement <aclement>
Mon, 7 Apr 2008 06:35:33 +0000 (06:35 +0000)
committeraclement <aclement>
Mon, 7 Apr 2008 06:35:33 +0000 (06:35 +0000)
tests/bugs160/pr225916/Test.java [new file with mode: 0644]
tests/bugs160/pr225916/TestAspect.java [new file with mode: 0644]
tests/bugs160/pr225916/TestMBean.java [new file with mode: 0644]
tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java
tests/src/org/aspectj/systemtest/ajc160/ajc160.xml

diff --git a/tests/bugs160/pr225916/Test.java b/tests/bugs160/pr225916/Test.java
new file mode 100644 (file)
index 0000000..f736ece
--- /dev/null
@@ -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 (file)
index 0000000..a25ef42
--- /dev/null
@@ -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 (file)
index 0000000..e75ad04
--- /dev/null
@@ -0,0 +1,6 @@
+package test.jmx;
+
+public interface TestMBean {
+
+       String test();
+}
index 5c5fc64e90b43333c6d48daa50f2acf61ef2cc23..7d20871dbd30af75a570d7179d98207751fca345 100644 (file)
@@ -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");
     }
index bda4a19c877419ee6aa4ef70067f7e7dd5a58e14..eb8f28b06d5e1e691aa1227f3c23a666fab30b1e 100644 (file)
@@ -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>