I want to build my code with Java 6, but use compile time checks of Java 5.
For example, I want the compiler to complain about @Override
annotation for interfaces (introduced in Java 6).
Do you know how to do this?
go with right mouse button on your project->properties->java compiler
ther you can enable "Enable project specific settings" and choose an own compiler java version