[jdom-interest] JDOM with generics

Mattias Jiderhamn mj-lists at expertsystems.se
Fri May 5 01:48:06 PDT 2006


At 2006-05-05 10:40, Jason:
>>- Backwards compatible generics relase (same package - drop-in 
>>replacement) - JDOM 1.5?
>
>Let's say you have a software package MyPkg written with Java 5 
>against the theoretical JDOM 5.
>
>MyPkg uses another pre-compiled software package CommercialPkg 
>written in Java 1.2 against the existing JDOM 1.0.
>
>To make the program work without fancy classloader magic, you'll 
>need to use the JDOM 5 JAR because MyPkg depends on it.  Now what 
>happens when the CommercialPkg written and compiled under Java 1.2 
>talks to JDOM 5? Is it 100% kosher?  Can JDK 1.2 code work fine 
>calling into classes that use generics?

Can code using the Collections API (java.util.List, java.util.Map, 
...) and compiled using JDK 1.2 be run under JDK 1.5, where the 
Collections API is implemented with generics...? 



More information about the jdom-interest mailing list