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

Reply via email to