Ulf Dittmer wrote:I don't think that it is good advice for someone who has a problem with API X to use API Y instead. The first step is to figure *why* there is a problem with API X. Only then -and after knowing a good deal more about the situation than we know now- can a recommendation to use API Y make sense. Any possibly not even then.
In general, I'd agree with you; but Java's date/time API is
so bad (particularly
Calendar) that it has pretty much
always needed an alternative - and before version 8, that was Joda time. And I say that as someone who
loves the language.
Example: I've been using Java for 13 years, and I
still don't know all the ramifications of
clear()ing a
Calendar field - at least not ALL of the 16 that you
can clear(); not to mention the 22 or more (out of a total of 54) that it
might affect.
Calendar is just a
horrible interface, and I echo Maneesh's words about why it's taken so darn long to replace it.
Winston