-2

I am trying to use in the following way:

@Override
public User getModel() {
    return user;
}

And I get the following error message generated by Eclipse:

Multiple markers at this line

  • The method getModel() of type UserAction must override a superclass method
  • implements com.opensymphony.xwork2.ModelDriven.getModel
Philipp Reichart
  • 20,771
  • 6
  • 58
  • 65
  • 1
    http://stackoverflow.com/questions/1678122/must-override-a-superclass-method-errors-after-importing-a-project-into-eclips – AlexanderN Apr 23 '12 at 20:54
  • 1
    Did you try searching for [Multiple Markers](http://stackoverflow.com/questions/4991458/what-does-the-multiple-markers-mean) before posting? – Old Pro Apr 23 '12 at 21:45
  • What is your class definition? class Clazz extends ModelDriven ? – Gren Apr 23 '12 at 22:13

1 Answers1

3

It means that there are multiple problems at that line. One of which is the fact that you can't use @Override if a method with the same signature does not exist in the superclass.

Bozho
  • 588,226
  • 146
  • 1,060
  • 1,140