javaeclipseoverridingeclipse-indigoeclipse-juno

@Override annotation thowing error in Eclipse Juno but not in Eclipse Indigo


I'm trying to move to using the latest version of Eclipse (Juno 4.2) but I am getting errors a project where I have used @Override annotation. The same project does not throw any errors in Eclipse Indigo.

I have had similar problems in the past but I have overcome them by changing the JRE on the buildpath. The settings for the project seems identical to me in Indigo and Juno. How do I solve this?

enter image description here

...

enter image description here

The compiler settings are also identical

enter image description here

...

enter image description here


Solution

  • I suspect there are different "JDK compliance" settings for the two projects.

    See this question which explains how @Override changed between Java 1.5 and 1.6.