]> source.dussan.org Git - aspectj.git/commitdiff
improved - hopefully get more info as to why currently failing on the build machine
authoraclement <aclement>
Tue, 10 Oct 2006 10:51:47 +0000 (10:51 +0000)
committeraclement <aclement>
Tue, 10 Oct 2006 10:51:47 +0000 (10:51 +0000)
tests/java5/pertypewithin/ajdk/AJDKExamples.aj
tests/src/org/aspectj/systemtest/ajc150/ajc150.xml

index a03c72643c921b7910cc7819d3f3f7c3d00eacd5..e324c6f43f7da326634ca2f4c33ec087b22b4330 100644 (file)
@@ -2,6 +2,9 @@ package org.xyz.foo;
 import java.util.*;
 public aspect AJDKExamples pertypewithin(org.xyz..* && !AJDKExamples) {
                     
+   public AJDKExamples() {
+          System.out.println("Aspect instance constructed");
+   }
    // use WeakHashMap for auto-garbage collection of keys       
    private Map<Object,Boolean> instances = new WeakHashMap<Object,Boolean>();
 
index 922fb16eefe61f562da5ac878cc427fe3fd02014..43e304401a93698e9e83a5f864ea4d194ac73b03 100644 (file)
     </ajc-test>
 
     <ajc-test dir="java5/pertypewithin/ajdk" title="ajdk: ptw">
-        <compile files="AJDKExamples.aj" options="-1.5"/>
+        <compile files="AJDKExamples.aj" options="-1.5 -showWeaveInfo">
+          <message kind="weave" text="Join point 'constructor-execution(void org.xyz.foo.B.&lt;init&gt;())' in Type 'org.xyz.foo.B' (AJDKExamples.aj:38) advised by afterReturning advice from 'org.xyz.foo.AJDKExamples' (AJDKExamples.aj:11)"/>
+          <message kind="weave" text="Join point 'constructor-execution(void org.xyz.foo.A.&lt;init&gt;())' in Type 'org.xyz.foo.A' (AJDKExamples.aj:36) advised by afterReturning advice from 'org.xyz.foo.AJDKExamples' (AJDKExamples.aj:11)"/>
+        </compile>
         <run class="org.xyz.foo.AJDKExamples">
             <stdout>
+               <line text="Aspect instance constructed"/>
+               <line text="Aspect instance constructed"/>
                 <line text="true"/>
                 <line text="true"/>
                 <line text="There are 2 As"/>