Skip to main content



      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 14:04
Eclipse UserFriend
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: Thu Jul 10 05:14:40 EDT 2025

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

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

Back to the top