Browse Source

test and fix for pr106554: staticinitialization and PTW

tags/preDefaultReweavable
aclement 18 years ago
parent
commit
76d607d6db

+ 2
- 0
tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java View File

@@ -97,6 +97,8 @@ public class Ajc150Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
runTest("compiler error when mixing inheritance, overriding and polymorphism");
}
public void testPerTypeWithin_pr106554() {runTest("Problem in staticinitialization with pertypewithin aspect");}
public void testPerTypeWithinMissesNamedInnerTypes() {
runTest("pertypewithin() handing of inner classes (1)");
}

+ 11
- 0
tests/src/org/aspectj/systemtest/ajc150/ajc150.xml View File

@@ -554,6 +554,17 @@
<message kind="weave" text="Join point 'method-execution(void C.m3())' in Type 'C' (AroundAdvice.aj:14) advised by before advice from 'ErrorHandling' (AroundAdvice.aj:8)"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150/pr106554" pr="106554" title="Problem in staticinitialization with pertypewithin aspect">
<compile files="A.aj" options="-showWeaveInfo">
<message kind="weave" text="Join point 'staticinitialization(void A.&lt;clinit&gt;())' in Type 'A' (A.aj:1) advised by before advice from 'StopsInit' (A.aj:21)"/>
</compile>
<run class="A">
<stdout>
<line text="test = 1"/>
</stdout>
</run>
</ajc-test>

<ajc-test dir="bugs150/SimpleInsuranceFailure" title="raw and generic type conversion with itd cons">
<compile files="" options=" -emacssym, -sourceroots ." >

Loading…
Cancel
Save