]> source.dussan.org Git - aspectj.git/commitdiff
Fix for Bugzilla Bug 70794
authoraclement <aclement>
Fri, 20 Aug 2004 13:26:14 +0000 (13:26 +0000)
committeraclement <aclement>
Fri, 20 Aug 2004 13:26:14 +0000 (13:26 +0000)
   The introduction on interface causes the interface implementation class error
(testcase now expects the error text)

tests/bugs/interAbstract/InterfaceMethodDeclarationAbstract.java
tests/src/org/aspectj/systemtest/ajc120/ajc120-tests.xml

index 7eb4abab47c432d7a9009e82c53fef7e9f1cf3a5..efa4b84f6935de1e3298c1c40580cbe9115e6fda 100644 (file)
@@ -29,7 +29,7 @@ public class InterfaceMethodDeclarationAbstract {
 interface I {}
 
 aspect A {
-    abstract int I.getInt();  // implicitly public 
+    abstract int I.getInt();  // Error expected: Needs to be public
     before() : execution(int getInt()) && target(I) {
         Tester.event("before-execution");
     }
index dbdddd93ee5c83eeafdc27c92db9d4d8794247d8..4ab8eb3558445dc6955c1e05ee1df1ac5594103b 100644 (file)
                pr="49784"
                title="aspect declares interface method (abstract)">
         <compile files="InterfaceMethodDeclarationAbstract.java">
-               <message kind="error" line="40" text="must implement" />
+               <message kind="error" line="40" text="abstract intertype method declaration 'int I.getInt()' on interface I must be declared public (compiler limitation)" />
         </compile>
     </ajc-test>