Is there a way to convince javac some SDK methods are deprecated?
I would like to enforce some coding conventions my employer has defined which prohibit certain actions, such as the use of the following methods:
static CalendargetInstance()
static CalendargetInstance(Locale aLocale)
static CalendargetInstance(TimeZone zone)
(only the method using timezone and locale is permitted).
It would be convenient if I could set some properties file to indicate these methods are deprecated.
Is there a way to do that without modifying the source and recompiling the JDK?
I suppose the class files could be edited directly, but I would not want to try that.
Are there any class file manipulators which might assist me in this endeavor?
Any suggestions for alternatives?
I have used programmatic audit ing of source code, but that is after the fact, and I would like to have the team informed at the time of the first compile.
Thanks,
Bill

