/**
* @author Andy Clement
-- */
++ */
public class Ajc170Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
+ public void testBCExceptionAnnoDecp_371998() {
+ runTest("BCException anno decp");
++ }
++
+ public void testTransientTjpFields()throws Exception {
+ runTest("transient tjp fields");
+ JavaClass jc = getClassFrom(ajc.getSandboxDirectory(), "Code");
+ Field[] fs = jc.getFields();
+ //private static final org.aspectj.lang.JoinPoint$StaticPart ajc$tjp_0 [Synthetic]
+ //private static final org.aspectj.lang.JoinPoint$StaticPart ajc$tjp_1 [Synthetic]
+ for (Field f: fs) {
+ if (!f.isTransient()) {
+ fail("Field should be transient: "+f);
+ }
+ }
}
public void testGenericsWithTwoTypeParamsOneWildcard() {
return new File("../tests/src/org/aspectj/systemtest/ajc170/ajc170.xml");
}
--}
++}
<suite>
- <ajc-test dir="bugs170/transientTjpFields" title="transient tjp fields">
- <compile files="Code.java" options="-Xset:makeTjpFieldsTransient=true">
- </compile>
- </ajc-test>
+ <ajc-test dir="bugs170/pr371998" title="BCException anno decp">
+ <compile files="AspectTest.java" options="-1.5 -showWeaveInfo">
+ <message kind="weave" text="Extending interface set for type 'Foo' (AspectTest.java) to include 'X' (AspectTest.java)"/>
+ <message kind="weave" text="Type 'Foo' (AspectTest.java) has intertyped method from 'AspectTest' (AspectTest.java:'void X.xxx()')"/>
+ <message kind="weave" text="Extending interface set for type 'Bar' (AspectTest.java) to include 'X' (AspectTest.java)"/>
+ <message kind="weave" text="Type 'Bar' (AspectTest.java) has intertyped method from 'AspectTest' (AspectTest.java:'void X.xxx()')"/>
+ </compile>
+ <run class="AspectTest"/>
+ </ajc-test>
+
++ <ajc-test dir="bugs170/transientTjpFields" title="transient tjp fields">
++ <compile files="Code.java" options="-Xset:makeTjpFieldsTransient=true">
++ </compile>
++ </ajc-test>
+
<ajc-test dir="bugs170/language" title="perthis">
<compile files="PerThis.java" options="-1.7">
</compile>
</compile>
</ajc-test>
--</suite>
++</suite>