diff options
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> |