[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] introductions and inheritance
|
George Harley1 wrote:
Hi Robert,
On first reading, this sounds like it *might* be related to a bug that
was fixed in CVS a little while ago (see Bugzilla reports
https://bugs.eclipse.org/bugs/show_bug.cgi?id=50939 and
https://bugs.eclipse.org/bugs/show_bug.cgi?id=43972).
could be indeed the same bug. but it seems a bit more serious cause
it happens with the ajc too.
i tried the following workaroud (to no avail thou)
public aspect Implementor{
public interface IFoo_A extends IFoo;
public interface IFoo_B extends IFoo;
declare parents: BaseBar implements IFoo_A;
declare parents: DefaultBar implements IFoo_B;}
i guess the only solution would be to do the implementation
code into IFoo_A and IFoo_B instead of IFoo. which would of
coursse would be code duplication. and we dont want that, or do we?
naaah!
ciao robertj
Best regards,
George
________________________________________
George C. Harley
*robert kuzelj <robert_kuzelj@xxxxxxxxx>*
Sent by: aspectj-users-admin@xxxxxxxxxxx
03/03/2004 12:36
Please respond to
aspectj-users
To
aspectj-users@xxxxxxxxxxx
cc
Subject
[aspectj-users] introductions and inheritance
hi,
i have the following problem:
i have to classes BaseBar and DefaultBar where
DefaultBar extends Basebar. i have also an interface IFoo
to which i introduced some code with an aspect.
public aspect IFooImplementation{
public void IFoo.doFoo(){...}}
now i want to extend BaseBar and DefaultBar with this
interface. therefore i do this:
public aspect Implementor{
declare parents: BaseBar implements IFoo;}
now this gives me the following error
DefaultBar.java:8 Class must implement the inherited abstract method
doFoo.
i tried to resolve this by doing this
public aspect Implementor{
declare parents: BaseBar implements IFoo;
declare parents: DefaultBar implements IFoo;}
but still the same error.
only when i am leaving out the implementation to BaseBar
it works.
public aspect Implementor{
declare parents: DefaultBar implements IFoo;}
is this a bug or a feature?
ciao robertj
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature