I'm not talking fancy things like closures or functional programming. I'm talking some of the basic interfaces in commonly used classes.
Exhibit A are the constructors for
JList. These take a
Vector. How long have we had Collections built into Java? So why don't
Exhibit B are classes that still return
Enumeration. For example, to get the contents of a
ZipFileyou get an
Enumerationand have to work your way through it by hand. Now Java has the enhanced for-loop, there ought to be methods for returning a
I could go on, but I think you get the point - many of Java's own classes simply haven't been modernized to bring them in line with improvements elsewhere. And I get really irritated having to continue to write crufty old-fashioned code to deal with those deficiencies.