New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
rliesenfeld opened this Issue Aug 25, 2015 · 0 comments

Comments

1 participant
@rliesenfeld
Member

rliesenfeld commented Aug 25, 2015

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