Bug: Suggestion error in Idea with generic method parameter


public interface ResponceCallback<T extends Responce> {
    void onSuccess(T responce);
    void onFail();

sendRequest method Signature in some class:

    public <T extends Responce> void sendRequest(Request request, ResponceCallback<T> responceCallback)


    public void test() {
        service.<MyResponce>sendRequest(new MyRequest(4), new __CURSOR_HERE__);

Idea advise and autocomplete:

new ResponceCallback<Responce>() ...

but must:

new ResponceCallback<MyResponce>() ...

1 comment
Comment actions Permalink

Please file a JIRA request


Please sign in to leave a comment.