MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/b2zas5/java_12_released/eiycmsg/?context=3
r/java • u/kedarjoshi • Mar 19 '19
98 comments sorted by
View all comments
Show parent comments
7
Removed or just deprecated? While I agree with removing them thiswill break a bunch of codebases. My last job we had some really, really horrifying uses of finalize() in legacy code.
9 u/dpash Mar 19 '19 Removed. They'd been deprecated since Java 9 and in some cases had been turned into no-ops, so didn't do anything anyway.Yes code will break, but we've been telling people for 20 years not to use finalize. 1 u/[deleted] Mar 20 '19 Agreed about not using finalize. Unfortunately, there is some really, really terrible code out there haha. 2 u/dpash Mar 20 '19 We've all been there and vomited over what we saw there.
9
Removed. They'd been deprecated since Java 9 and in some cases had been turned into no-ops, so didn't do anything anyway.
Yes code will break, but we've been telling people for 20 years not to use finalize.
finalize
1 u/[deleted] Mar 20 '19 Agreed about not using finalize. Unfortunately, there is some really, really terrible code out there haha. 2 u/dpash Mar 20 '19 We've all been there and vomited over what we saw there.
1
Agreed about not using finalize. Unfortunately, there is some really, really terrible code out there haha.
2 u/dpash Mar 20 '19 We've all been there and vomited over what we saw there.
2
We've all been there and vomited over what we saw there.
7
u/[deleted] Mar 19 '19
Removed or just deprecated? While I agree with removing them thiswill break a bunch of codebases. My last job we had some really, really horrifying uses of finalize() in legacy code.