Reputation: 669
When one looks at the javadoc of the java.util.Date
class, most of the methods are already deprecated for a extended period of time. Now in java8, brand new package java.time
was introduced with mature replacements for java.util.Date
and java.util.Calendar
classes
Why not step one step further and deprecate old classes completely? Are there any plans to deprecate them in Java9 or 10?
Upvotes: 3
Views: 498
Reputation: 33
In Java 9 java.util.Date
and java.util.Calendar
are also not deprecated. There are quite a bit of usages of Calendar and Date in open source software. I think that creators of Java do not want to break backward compatibility now.
Upvotes: 1
Reputation: 13845
A reason could be the backwards compatibility for software developed with older versions. This is just the indication that in future versions, the complete class may become deprecated.
Upvotes: 1