[jdom-interest] Java 5.0 JDOM Plans?

Jason Hunter jhunter at xquery.com
Tue Aug 30 13:58:32 PDT 2005


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.

Also, it's not source maintenance I'm really worried about.  It's having 
two versions of jdom.jar in the world.  What happens when your app uses 
libraries, one of which depends on JDOM regular and one of which depends 
on JDOM 5?  It doesn't work.  This is why we'd probably need to use new 
packages containing the version within the package name.

-jh-



More information about the jdom-interest mailing list