[jdom-interest] JDOM with generics
Tatu Saloranta
cowtowncoder at yahoo.com
Mon May 8 11:57:03 PDT 2006
--- Victor Toni <victor.toni at ebuconnect.de> wrote:
...
> That's not correct.
> Can you use already compiled libraries (against Java
> 1.4) with Java 1.5.
> Yes, you can.
Of course. No one has claimed otherwise.
> Could a library which was compiled against JDOM 1.0
> be used with JDOM
> 1.0.1? It should. And it should work also with a
You should, yes. But the problem Jason pointed out was
whether you need _both_ simultaneously, via (possibly
transitive) dependencies, on same classloader. Now, if
the only API changes were related adding generics,
type erasure might save you. If not, you'd get a
conflict, and most likely one of the libs would fail
to be loaded in by class loader.
Anyway, since I don't urgently need the changes, nor
plan to work on them, I don't really care all that
much: but I do want people involved to be aware of the
trade-offs. None of the approaches is inherently
superior, it comes down to choosing best trade-offs
for whatever users need.
-+ Tatu +-
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the jdom-interest
mailing list