Skip to content

Unnecessary warning for repositories (Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection) #29896

Closed as not planned
@Vlad-Logvin

Description

@Vlad-Logvin

I'm not sure, if this is a bug or not.

After switching spring boot version from 2.7.2 to 3.0.2, I started getting messages "Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection" for some of my repositories.

I created TestRepository and made sure that this method is the cause of my problem.

public interface TestRepository extends Repository<TestEntity, Long> {

    List<TestEntity> findByIdIn(List<Long> ids);
}

Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: by.logvin.test.TestRepository



When I tried to add @param with any text, the warning disappeared.

public interface TestRepository extends Repository<TestEntity, Long> {

    List<TestEntity> findByIdIn(@Param("anytext") List<Long> ids);
}

Does it make sense to have @param in this method?

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: stackoverflowA question that's better suited to stackoverflow.comin: dataIssues in data modules (jdbc, orm, oxm, tx)status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions