When I import project from workspace in eclipse, it gives error at @Override annotation. If the project has any method that has an annotation it displays as an error and when I remove it works fine, but when I have a major project that has a lot of annotations, what should I do fix it?
When I import project from workspace in eclipse, it gives error at @Override annotation.
Share
You’re getting the error because you’re using Java 1.5 which does not support @Override annotations for implementation overrides. Go into the Eclipse settings and set the language level to 1.6.
EDIT – to change the language level go To Project > Properties > Java Compiler and set the language level there. You may need to click to enable project specific settings.