Force use of deprecated API to fail compilation

Ok, short question that I hope you can help me with. Is it possible to force the compilation to fail if I a deprecated API is used. Why? Well, we are a large number of developers and sometimes people use a method or class that has been deprecated because they are either lazy or can't find the new class/method.

[319 byte] By [eerihela] at [2007-10-2 0:58:10]
# 1

This isn't possible with the default compiler. You would have to write a special compiler wrapper that calls the java compiler (sun.tools.javac.Main in tools.jar)

Can't you just hang a rubber chicken over the desk of the person who checked in bad code - that was what happened at my last job :)

Need Java help? Want to help people who do? Sit down with a cup of Java at the [url=http://forums.hotjoe.com/forums/list.page]hotjoe[/url] forums.

Sure they're new - come get them started!

stdunbara at 2007-7-15 18:18:19 > top of Java-index,Developer Tools,Java Compiler...