@Tested: improve support for complex generic type hierarchies #201

rliesenfeld opened this Issue Aug 25, 2015 · 0 comments


None yet

1 participant


The following combination of generic types used in a @Tested class is not currently supported, failing with a ClassCastException:

public interface Dep {}
static class Base<B extends Dep> { B dep; }
static class Derived<D extends Dep> extends Base<D> {}
static final class Concrete extends Derived<Dep> {}

@Injectable final Dep dep = new Dep() {};
@Tested Concrete srv;
@rliesenfeld rliesenfeld self-assigned this Aug 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment