views:

37

answers:

1

hello, how can i configure the javac compiler to give an error instead of a warning when an annotation like @Override is missing?

it should work on java 5.

+1  A: 

You can use the -Werror option with JDK 6.


On the same topic :

Colin Hebert
thanks! actually i would need it on java 5 though
clamp
You can still try it. I saw some posts saying that it was available with the JDK 1.5. And if you have your code in Java5 but you're using JDK6 it will work.
Colin Hebert