-
Notifications
You must be signed in to change notification settings - Fork 38.1k
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
Deprecate LocalVariableTableParameterNameDiscoverer
completely (avoiding its exposure in native images)
#29531
Deprecate LocalVariableTableParameterNameDiscoverer
completely (avoiding its exposure in native images)
#29531
Conversation
I think this should behave the same way on the JVM. the check should be on AOT not native. |
Could be great for consistency indeed even if technically on JVM + AOT we have to the capability to use it. Let's validate the choice in today's Framework meeting. |
LocalVariableTableParameterNameDiscoverer
in AOT mode
f8fa9d6
to
71bbabc
Compare
I updated the PR accordingly. |
An interesting case in terms of automatic exclusion indeed. We certainly don't want to support that parameter name discovery strategy in a native image (where the underlying class files are generally not available), and it's not recommended in any other scenario either... since you can always compile with From that perspective, for a setup following Java 8+ recommendations, |
I'm afraid we'll have to return to a |
LocalVariableTableParameterNameDiscoverer
in AOT modeLocalVariableTableParameterNameDiscoverer
in native images
Reopening this one after a team discussion: It is ultimately preferable to deprecate We have considered doing this before and meant to address the native image impact of it in 6.0 but somehow missed this last week. So let's fix this glitch now, in time for the Boot 3.0 GA release, with a note in the upgrade wiki page. |
LocalVariableTableParameterNameDiscoverer
in native imagesLocalVariableTableParameterNameDiscoverer
completely (avoiding its exposure in native images)
Also retaining standard Java parameter names for Spring's AspectJ sources now. See gh-29531
As a lenient measure for the transition period, we'll keep |
This commit adds "-parameters" to the compiler arguments to remove Spring Framework warnings about parameter name resolution. Resolves #4258 Related to spring-projects/spring-framework#29531
DefaultParameterNameDiscoverer
should be updated to not useLocalVariableTableParameterNameDiscoverer
when running as a native image.