Skip to content

Type mismatch: cannot convert from T to S #4151

Description

@Jafeyyu

There is a class:

public class Common<T> {
    public <S extends T> S findOne(Object params) {
        return select(params)
    }

    private <S extends T> S selectOne(Object params) {
        return getSqlSession().selectOne(params);
    }
}

Using version 1.44.0, there were no errors. After upgrading to version 1.45.0, it prompts "Type mismatch: cannot convert from T to S"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions