[jdom-interest] How to ease traversal of JDOM tree

Sébastien Pierre spierre at isb-sib.ch
Mon Nov 19 09:53:13 PST 2001


Salut Laurent ;)

Le lundi 19 novembre 2001, à 06:38 PM, Laurent Bihanic a écrit :
> Well, this a constraint from the Java language: If you implement a 
> method defined in an interface, you can't change its return type.

I guess I should have some sleep ;)

>    elt.addContent(a).addContent(b).addContent(c).getNamespace();
>    (...)
>    elt.addContent(a).addContent(b).addContent(c);
>    elt.getNamespace();

In this case this should not be a problem as JDOM is still in beta stage 
developers are aware of possible API changes (unless there has been an 
API freeze?). But maybe using the Node interface would have other 
consequences? I mean it's important to care about existing code, but in 
my opinion such a good change as this Node interface is worth some minor 
code breaks.

What do you (not only Laurent ;) think ?

Cheers,
  -- Sébastien.




More information about the jdom-interest mailing list