Skip to content

Type mismatch: cannot convert from T to S #4151

@Jafeyyu

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"

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