Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » Adding an interace to class based on it implementing a interface.
Adding an interace to class based on it implementing a interface. [message #589960] Wed, 31 August 2005 18:04
Chris Rudd is currently offline Chris RuddFriend
Messages: 4
Registered: July 2009
Junior Member
Is it possibly to create a static crosscut that says "any class implementing
interface X, implements interace Y as well".

class Foo implements X
{
}

public aspect ImplementY {
declare parents : X extends Y;
};

The above changes X to implement Y, when I only want Foo to implement Y.
Using implements instaed of extends makes no different either.
Previous Topic:Parameterized vararg match problem
Next Topic:ClassFormatError
Goto Forum:
  


Current Time: Fri Apr 26 21:09:15 GMT 2024

Powered by FUDForum. Page generated in 0.02674 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top