Looks like I still have a few things to learn about generics. Thanks a
lot! Works fine.

On 13.05.2009 19:27:07 Andrus Adamchik wrote:
> 
> On May 12, 2009, at 4:40 AM, Jeremias Maerki wrote:
> 
> >   Collection<Representation> getRepresentations();
> 
> Ain't Java generics fun. Here is the version of the same design that  
> will be allowed to compile:
> 
>    Interface:      Collection<? extends Representation>  
> getRepresentations();
>    Implementation: Collection<RepresentationImpl> getRepresentations()  
> {..}
> 
> Andrus



Thanks,
Jeremias Maerki (who's been doing Java 1.3 & 1.4 for that past 4 years)

Reply via email to