Skip to content

Jmethod of inteface could not get param annotaion #199

Description

@sundlb

📝 Overall Description

@Mapper
interface UserDao {
User getUser(@verify String userId);
}

invoke Jmethod.getParamAnnotations(0) return empty list.

🎯 Expected Behavior

@Mapper
interface UserDao {
User getUser(@verify String userId);
}

invoke Jmethod.getParamAnnotations(0) return Verify type Annotation list

🐛 Current Behavior

@Mapper
interface UserDao {
User getUser(@verify String userId);
}

invoke Jmethod.getParamAnnotations(0) return empty list.

🔄 Reproducible Example

No response

⚙️ Tai-e Arguments

🔍 Click here to see Tai-e Options
{{The content of 'output/options.yml' file}}
🔍 Click here to see Tai-e Analysis Plan
{{The content of 'output/tai-e-plan.yml' file}}

📜 Tai-e Log

🔍 Click here to see Tai-e Log
{{The content of 'output/tai-e.log' file}}

ℹ️ Additional Information

No response

Activity

  1. jjppp commented on Aug 30, 2025

    @jjppp
    Member

    Hi @sundlb! In Java, annotations for method parameters in an interface are not automatically inherited by its implementors, unless you're talking about some special mechanisms provided by some framework.
    I believe the information you provided is too succint to resolve your issue. For example, what is the definition of the annotation @verify in your code? Which class are you querying?

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions