[jdom-interest] Java 5.0 JDOM Plans?

Bradley S. Huffman hip at a.cs.okstate.edu
Tue Aug 30 16:52:26 PDT 2005


Jason Hunter writes:

> >> 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().
> > 
> > Brad
> 
> detach() is a big annoying one.

Don't see that one?

> The other methods on Parent and Content that return Parent or Content 
> instead of the specific type are other candidates.

I can see getParent()

    Document parent = content.getParent();
    Element parent = content.getParent();

But I don't see how it will help any of the methods that return Content.

Brad


More information about the jdom-interest mailing list