Where it is possible to automatically transform use of a deprecated method or class, then an earlier removal could be contemplated. Perhaps after only one full release. When loading a classfile the JVM could check the version and if 'old' it could further check for use of deprecated items and apply the transform if found. The transforms could also be applied offline (to jar files or class file directories) and to source code.
Deprecations for which no automatable transform exists should probably be kept indefinitely (or until we learn how to create a transform). |