]> source.dussan.org Git - aspectj.git/commitdiff
fix for Bugzilla Bug 61572
authoracolyer <acolyer>
Tue, 10 Aug 2004 16:33:42 +0000 (16:33 +0000)
committeracolyer <acolyer>
Tue, 10 Aug 2004 16:33:42 +0000 (16:33 +0000)
  ITDs on inner classes should be static contexts

tests/src/org/aspectj/systemtest/ajc121/Ajc121Tests.java
tests/src/org/aspectj/systemtest/ajc121/ajc121-tests.xml

index e32a91e37e5502b6490bea29fe8f46f230ec4242..968eec0bc43b582ed496340f76602baa89ee5b97 100644 (file)
@@ -145,6 +145,9 @@ public class Ajc121Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
   public void test026_bindingThisAndTargetToTheSameFormal() {
        runTest("ajc crashes when compiling the following program (binding this() and target())");
   }
-
+  
+  public void test027_itdsOnInnerClassesAsStatic() {
+      runTest("ITDs on inner classes should be static context");
+  }
 }
 
index 579adf58d6430f199007d89a996654b831b5667d..49cd75b362ccbc0d3635d3277dd225f9e3b3ce95 100644 (file)
        <run class="Proceeding3"/>
        </ajc-test>
 
-    <ajc-test dir="bugs/oxford" pr="65319"
+       <ajc-test dir="bugs" pr="61572"
+       title="ITDs on inner classes should be static context">
+       <compile files="PR61572.aj">
+               <message kind="error" line="19" text="Cannot make a static reference to the non-static field zzz"></message>
+       </compile>
+       </ajc-test>
+
+  <ajc-test dir="bugs/oxford" pr="65319"
                title="ajc crashes when compiling the following program (binding this() and target())">
                <compile files="PR65319.java">
                        <message kind="error" line="7" text="Cannot use target() to match at this"/>