19 August 2009

Time to upgrage eclipse when @Override does not work

When using an old version of Eclipse 3.2.1 from September 2006 I got this type of error:
The method actionPerformed(ActionEvent) of type NAME_OF_CLASS_AND_METHOD must override a superclass method

The class had this definition:
public void actionPerformed(ActionEvent e) {

The problem was solved when upgrading to a newer version of Eclipse (3.5). I'm guessing the support for the @Override annotation was a bit limited.

No comments:

Post a Comment