Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed the issue where the annotation parameter scan skipped first-level conflicts #16312

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kse-music
Copy link
Contributor

When searching for parameter annotations, I overlooked a scenario as below:

interface RemoteUserService {

	void batch(@CustomParameterAnnotation("six") String... user);

}

 class UserServiceImpl implements RemoteUserService {

     @Override
      public void batch(@CustomParameterAnnotation("seven") String... user) {
      
      }
}

static class DefaultUserService extends UserServiceImpl implements RemoteUserService {

      @Override
      public void batch(String... user) {
      
      }

}

When I run test should be throw exception :

Parameter parameter = DefaultUserService.class.getDeclaredMethod("batch", String[].class).getParameters()[0];
this.parameterScanner.scan(parameter);

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants