Skip to content
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

Cascading: ClassCastException from generic method whose return type uses two type parameters #158

rliesenfeld opened this issue Mar 20, 2015 · 0 comments


Copy link

@rliesenfeld rliesenfeld commented Mar 20, 2015

The following example test fails with a CCE:

    public interface GenericInterface<T> { <S extends T> S save(S entity); }
    public interface ConcreteInterface extends GenericInterface<String> {}

    public void cascadingFromGenericMethodWhoseTypeParameterExtendsAnother(@Mocked ConcreteInterface mock)
        String value = "test";

        String saved =;

@rliesenfeld rliesenfeld added the bug label Mar 20, 2015
@rliesenfeld rliesenfeld self-assigned this Mar 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant
You can’t perform that action at this time.