aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoraclement <aclement>2006-10-10 10:51:47 +0000
committeraclement <aclement>2006-10-10 10:51:47 +0000
commitf80ae0089b2a8f57653348b76ef1b7f89aebf2ef (patch)
tree87dfaf162b44a0e9993fdd1d90adb2a406ed1e82 /tests
parentbaf4958e10e998bf081c68ec047c5241f9d79c72 (diff)
downloadaspectj-f80ae0089b2a8f57653348b76ef1b7f89aebf2ef.tar.gz
aspectj-f80ae0089b2a8f57653348b76ef1b7f89aebf2ef.zip
improved - hopefully get more info as to why currently failing on the build machine
Diffstat (limited to 'tests')
-rw-r--r--tests/java5/pertypewithin/ajdk/AJDKExamples.aj3
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/ajc150.xml7
2 files changed, 9 insertions, 1 deletions
diff --git a/tests/java5/pertypewithin/ajdk/AJDKExamples.aj b/tests/java5/pertypewithin/ajdk/AJDKExamples.aj
index a03c72643..e324c6f43 100644
--- a/tests/java5/pertypewithin/ajdk/AJDKExamples.aj
+++ b/tests/java5/pertypewithin/ajdk/AJDKExamples.aj
@@ -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>();
diff --git a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
index 922fb16ee..43e304401 100644
--- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
+++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
@@ -2881,9 +2881,14 @@
</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"/>