diff options
author | aclement <aclement> | 2004-08-20 13:26:14 +0000 |
---|---|---|
committer | aclement <aclement> | 2004-08-20 13:26:14 +0000 |
commit | 8b550ad855b72b6eeb61f3ade30f383bf337a8e6 (patch) | |
tree | 27780b3c1a23df497822be84a3851586445935e8 /tests | |
parent | bbc409e17b6781826e86c3548790668553a8636b (diff) | |
download | aspectj-8b550ad855b72b6eeb61f3ade30f383bf337a8e6.tar.gz aspectj-8b550ad855b72b6eeb61f3ade30f383bf337a8e6.zip |
Fix for Bugzilla Bug 70794
The introduction on interface causes the interface implementation class error
(testcase now expects the error text)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bugs/interAbstract/InterfaceMethodDeclarationAbstract.java | 2 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc120/ajc120-tests.xml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/bugs/interAbstract/InterfaceMethodDeclarationAbstract.java b/tests/bugs/interAbstract/InterfaceMethodDeclarationAbstract.java index 7eb4abab4..efa4b84f6 100644 --- a/tests/bugs/interAbstract/InterfaceMethodDeclarationAbstract.java +++ b/tests/bugs/interAbstract/InterfaceMethodDeclarationAbstract.java @@ -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"); } diff --git a/tests/src/org/aspectj/systemtest/ajc120/ajc120-tests.xml b/tests/src/org/aspectj/systemtest/ajc120/ajc120-tests.xml index dbdddd93e..4ab8eb355 100644 --- a/tests/src/org/aspectj/systemtest/ajc120/ajc120-tests.xml +++ b/tests/src/org/aspectj/systemtest/ajc120/ajc120-tests.xml @@ -145,7 +145,7 @@ 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> |