]> source.dussan.org Git - aspectj.git/commitdiff
fix for Bugzilla Bug 36736
authorjhugunin <jhugunin>
Tue, 22 Apr 2003 17:35:11 +0000 (17:35 +0000)
committerjhugunin <jhugunin>
Tue, 22 Apr 2003 17:35:11 +0000 (17:35 +0000)
   compiler error expected for implemented abstract pointcuts

and for

fix for Bugzilla Bug 36673
   VerifyError in privileged aspect
minimally extended coverage for this bug

tests/ajcTests.xml
tests/ajcTestsFailing.xml
tests/jimTests.xml
tests/new/verifyError/Privilege.java

index 6fd1413fa2ffe06b8a8a75a76595954121abcbd5..388fafac64c7287871c310e183e479a7e6b9c088 100644 (file)
         <compile files="p1/C.java,p2/A2.java" options="-source14"/>
         <run class="p2.A2" vm="1.4"/>
     </ajc-test>
+
+    <ajc-test dir="new" pr="36736"
+      title="implemented abstract pointcut">
+        <compile files="AbstractImplementedPointcut.java">
+            <message kind="error" line="14"/>
+        </compile>
+    </ajc-test>
+    
+    <ajc-test dir="new/verifyError" pr="36673"
+      title="privileged aspect main verify error">
+        <compile files="Privilege.java"/>
+        <run class="Privilege"/>
+    </ajc-test>
     
 </suite>
index 60e5477505201d4f021492c12210f72a87ecf507..cb741c1e06e224218dbbdf2f4da77f36dff43413 100644 (file)
@@ -4,16 +4,5 @@
 <!-- contains valid tests that the compiler has never passed -->
 <suite>
 
-    <ajc-test dir="new/verifyError" pr="36673"
-      title="privileged aspect main verify error">
-        <compile files="Privilege.java"/>
-        <run class="Privilege"/>
-    </ajc-test>
 
-    <ajc-test dir="new" pr="36736"
-      title="implemented abstract pointcut">
-        <compile files="AbstractImplementedPointcut.java">
-            <message kind="error" line="14"/>
-        </compile>
-    </ajc-test>
 </suite>
index 3f20da53f8e151afb9eec9c3276a592c3e0377aa..3d842760f13accdc575904c35b96358b11ba0074 100644 (file)
@@ -1,15 +1,11 @@
 <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd">
 <suite>    
 
-    <ajc-test dir="bugs/interSpecials" title="IllegalAccessError while accessing introduced variable / 1.1rc1"
-      pr="36110">
-        <compile files="p1/C.java,p2/A1.java"/>
-        <run class="p2.A1"/>
-    </ajc-test>
-    <ajc-test dir="bugs/interSpecials" title="testing that assert works like .class"
-      pr="36110">
-        <compile files="p1/C.java,p2/A2.java" options="-source14"/>
-        <run class="p2.A2" vm="1.4"/>
+    <ajc-test dir="new" pr="559"
+      title="subclass advice not run for join points selected by superclass cflow-based pointcuts"
+      keywords="from-resolved_10rc3">
+        <compile files="PR559.java"/>
+        <run class="PR559"/>
     </ajc-test>
     <!--
     
index a49850f84d4e60814c5684e4791465ea8160b97e..89f154d16e426a706c88e811533294da16874a76 100644 (file)
@@ -7,13 +7,20 @@ class C {
 
 privileged aspect A {
        private int C.j = 1;
+       private static String C.s = "hello";
+       
+       private String C.m() {
+               return "from A";
+       }
 }
 
 /** @testcase PR#36673 privileged aspect main verify error */
 public privileged aspect Privilege {
        public static void main(String[] args) {
            C c = new C();
-               Tester.check(1 == c.j, "wrong value for c.j");
+               Tester.checkEqual(1, c.j, "wrong value for c.j");
+               Tester.checkEqual("hello", C.s, "wrong value for C.s");
+               Tester.checkEqual("from A", c.m(), "c.m()");
        }       
 }