Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] Method override "conflicts with existing member"

Hi.

> public class B extends A implements AOverride { }

I think the problem here is that ajc cannot decide which method to give preference, since you extend A (which has an a() method) and implement AOverride (which implements a() as well). 

So you have the following 1:2 inheritance relationship:

B ---> A
B ---> AOverride

This is in conflict. I guess what you want is:

B ---> A ---> AOverride

... and you should set up your hierarchy that way, e.g. using "declare parents".

Eric

--
Eric Bodden
Sable Research Group, McGill University
Montréal, Québec, Canada




Back to the top