Browse Source

Fix for Bugzilla Bug 70794

	  	The introduction on interface causes the interface implementation class error
(testcase now expects the error text)
tags/V1_2_1
aclement 20 years ago
parent
commit
8b550ad855

+ 1
- 1
tests/bugs/interAbstract/InterfaceMethodDeclarationAbstract.java View 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");
}

+ 1
- 1
tests/src/org/aspectj/systemtest/ajc120/ajc120-tests.xml View File

@@ -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>


Loading…
Cancel
Save