When doing the project, colleagues over the computer compiled through the Java code, or the sample code downloaded on the Internet, after the introduction of the project is not compiled, always @override error, the @override to remove the good, sometimes @override appear in many places, To delete all @override is very cumbersome and vomiting blood, can not fundamentally solve the problem. Online to find a reason, just know:
It is said that this is the JDK problem, @Override is JDK5 already have, but there is a small bug, is not support the implementation of the interface, think this is not an override and JDK6 fixed the bug, @override can be added either to the method overrides of the parent class or to the implementation of the interface. First make sure you have JDK 1.6 installed,
Then, modify the configuration in Eclipse, Windows->preferences-->java->compiler-->compiler Compliance Level Select 1.6, refresh the project, recompile, if still not, in the error project, right mouse button Select Properties-->java Compiler-->compiler compliance Level Select 1.6, Refresh project, recompile under.
Troubleshoot importing items in MyEclipse @override errors