[jdom-interest] Java 5.0 JDOM Plans?
Bradley S. Huffman
hip at a.cs.okstate.edu
Tue Aug 30 14:39:01 PDT 2005
Jason Hunter writes:
> Victor Toni wrote:
> > Actually there is no really a need for a fork because the Java compiler
> > and the compiler from Eclipse have the (not well documented) feature to
> > compile code with generics for the 1.4 version.
> > As long as only generics and the enhanced for-loop are used there should
> > be no problem to use the same code base for Java 1.4 and Java 5.
> > I am using it myself and it works very well for me but I might have a
> > smaller user base ;-)
> It's the covariant return types that we most want, and that JDK 1.4
> doesn't provide. This is where you can override a method and return a
> more specific type than the superclass returns.
Which methods would benefit from this? Other than clone().
More information about the jdom-interest