]> source.dussan.org Git - aspectj.git/commitdiff
373130: transient tjps
authorAndy Clement <aclement@vmware.com>
Fri, 2 Mar 2012 22:31:45 +0000 (14:31 -0800)
committerAndy Clement <aclement@vmware.com>
Fri, 2 Mar 2012 22:31:45 +0000 (14:31 -0800)
1  2 
tests/src/org/aspectj/systemtest/ajc170/Ajc170Tests.java
tests/src/org/aspectj/systemtest/ajc170/ajc170.xml

index 84add7bc69cd35acf656b08abb8561cd3cad9d34,63cb5e22bd827dca8689385e1fd2bf35a304ce2f..bfb995d12413ef0e9482a09fc7e97162546fed28
@@@ -20,11 -22,20 +22,24 @@@ import org.aspectj.weaver.UnresolvedTyp
  
  /**
   * @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");
        }
  
--}
++}
index 8d4eedacfee3c98b8d79da6b9ffedd01785d1eb7,314ff1c6d09cc30fbaf36c34728236065286a5ec..b5ce9623c19868f079dfb9e2b102b801ced340ac
@@@ -2,16 -2,11 +2,21 @@@
  
  <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>