[jdom-interest] type safety
edward at copyweb.co.uk
Wed Nov 24 11:34:59 PST 2004
On Wednesday 24 November 2004 14:41, Filippo Carone wrote:
> Hi all,
> I've already read some threads about the use of 'templates'
> introduced in Java1.5 and the line adopted by the jdom team on the
> subject. It seems to me jdom will not make use of generics any time
> soon (or maybe never). Without starting another thread about the
> (un)importance of type safety at compile time, I would only know if
> jdom has scheduled or not the use of generics.
I now usually remember to cast what I get out of a list back to what went in,
(usually Objects back to Elements..) but it would be much easier not to have
to bother. If I understand the implications of generics correctly, it seems
to me that JDOM would be even easier to use with them. But practically it's
going to be some time before 1.5 jvms are the norm, so introducing them now
would seem premature.
More information about the jdom-interest