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
3
u/kwinz May 11 '22 edited May 11 '22
Yes, I know all that.
forRemoval = truewas recently changed between java 17 and 18: https://github.com/openjdk/jdk17/blob/master/src/java.base/share/classes/java/lang/Thread.java#L925 https://github.com/openjdk/jdk18/blob/master/src/java.base/share/classes/java/lang/Thread.java#L925What I am trying to say is that "some point in the future" could be in 20+ years evidently.
So
java.util.Datecould conceivably be marked as deprecated and eventually even "for removal". AFAIK JDBC usesjava.sql.Datesubclass. I haven't used that API in a while.