[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] AspectJ and @Override annotation

Sure, here's an example:

public interface NiceThing {
        void doSomethingNice();

public class NiceImplementation implements NiceThing {
        public void doSomethingNice()
                System.err.println("Have a nice day now!");

Running in eclipse with Maven2's ApectJ plugin:

[ERROR] The method doSomethingNice() of type NiceImplementation must override a superclass method

Anyone ever had this problem? Google couldn't answer me...


On 8/18/07, Dean Wampler <dean@xxxxxxxxxxxxxxxxxxxxx> wrote:
There shouldn't be any conflicts. Can you post an example demonstrating the problems you're having?


On Aug 18, 2007, at 6:07 PM, Rodrigo Madera wrote:

Hello community,

I have a project that has @Override annotations over methods that are being implemented (as oposed to overriden) which is acceptable by Javac.

Is there any known incompatibility with AspectJ and @Override annotations for implementing methods? I'm getting some errors on this on my ported project.

Thanks for any help,

aspectj-users mailing list

Dean Wampler, Ph.D.

I want my tombstone to say:
  Unknown Application Error in Dean Wampler.exe.
  Application Terminated.
      [Okay]        [Cancel]

aspectj-users mailing list