简体   繁体   中英

@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?

在此输入图像描述

...

在此输入图像描述

The compiler settings are also identical

在此输入图像描述

...

在此输入图像描述

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM