Skip to content

Replaced deprecated org.springframework.core.LocalVariableTableParameterNameDiscoverer with org.springframework.core.StandardReflectionParameterNameDiscoverer #1959

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

Merged
merged 1 commit into from
Nov 26, 2022

Conversation

krupt
Copy link
Contributor

@krupt krupt commented Nov 26, 2022

No description provided.

…terNameDiscoverer with org.springframework.core.DefaultParameterNameDiscoverer
@bnasslahsen
Copy link
Collaborator

@krupt,

I have fixed your PR:
LocalVariableTableParameterNameDiscoverer should have been replaced by StandardReflectionParameterNameDiscoverer.

bnasslahsen added a commit that referenced this pull request Nov 29, 2022
@bnasslahsen bnasslahsen changed the title Replaced deprecated org.springframework.core.LocalVariableTableParameterNameDiscoverer with org.springframework.core.DefaultParameterNameDiscoverer Replaced deprecated org.springframework.core.LocalVariableTableParameterNameDiscoverer with org.springframework.core.StandardReflectionParameterNameDiscoverer Nov 29, 2022
@krupt
Copy link
Contributor Author

krupt commented Nov 29, 2022

But why? StandardReflectionParameterNameDiscoverer can't work for every library. DefaultParameterNameDiscoverer is better, cause it uses all posible options. First Kotlin, if exists, then StandardReflectionParameterNameDiscoverer for classes that were compiled with Java 8+ with -parameters option and then LocalVariableTableParameterNameDiscoverer for all other classes. That's how it works in Spring Framework

@bnasslahsen
Copy link
Collaborator

You were breaking tests ...

@sascha-sphw
Copy link

In which version will this be included?

@bnasslahsen
Copy link
Collaborator

@springdoc springdoc locked as too heated and limited conversation to collaborators Dec 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants