Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] declare parents with super/sub classes

Hi Jennifer,

What happens if you use this idiom to make subclasses of SomeType implement
marker? I've used this before in cases where I didn't control SomeType but
wanted all subtypes to implement a marker...

declare parents: (SomeType+ && !SomeType) implements Marker;

-----Original Message-----
From: aspectj-users-bounces@xxxxxxxxxxx
[mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Jennifer Baldwin
Sent: Tuesday, April 11, 2006 1:02 PM
To: aspectj-users@xxxxxxxxxxx
Subject: [aspectj-users] declare parents with super/sub classes

Hi,

I want to use declare parents to implement an empty interface for both
a subclass AND a super class. AJC will only do it for the superclass
in everything I've tried. I know that this makes sense since the
subclass will inherit the implementation. But for the example I'm
working on, which is implementing of distribution on a JVM, I need it
to be able to do this. Does anybody have any ideas on how to force it
to work?

Thanks,
Jennifer
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users




Back to the top