3 ms·
Finalizers are deprecated (though are still used of course in existing programs), so just a heads up: Cleaner API is the replacement
by kaba0 4y ago
Finalizers are deprecated (though are still used of course in existing programs), so just a heads up: Cleaner API is the replacement
- kelnos 4y agoSure, I mean, finalizers have been deprecated as long as I can remember. But -- as you say -- they still work, and I expect will continue to work for quite a while. And, as you suggest, probably forever for existing bytecode that targets older JVM versions.
- kentonv 4y agoI do very much appreciate that "deprecated" in Java only means "there's a better way to do this" and absolutely does not mean "this will go away". Serious platforms never break backwards compatibility.