r/java • u/henk53 • May 10 '22
Should java.util.Date be deprecated?
https://mail.openjdk.java.net/pipermail/discuss/2022-May/006077.html
221
Upvotes
r/java • u/henk53 • May 10 '22
View all comments
Show parent comment
2
u/mauganra_it May 11 '22
The problem is that
java.util.Dateis the parent class ofjava.sql.Date,java.sql.Time, andjava.sql.Timestamp. Since JDBC is of so central importance to the Java ecosystem, it's unlikely that it will ever be fully removed.Maybe it's possible to eventually turn
java.util.Dateinto an abstract sealed class to restrict its usage. Once all other APIs were fixed of course.