-
Notifications
You must be signed in to change notification settings - Fork 40.8k
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
ParameterizedContainer throws IllegalAccessException when there is more than one parameter #27410
Comments
The It looks like you are trying to do something slightly different. I'm guessing you want to register the I'm not sure why things appeared to work in Spring Boot 2.1.17. I suspect the condition wasn't quite doing what you expected. |
I should also mention that bean conditions such as
|
I don't think we can change the existing design. I'm going to close this one with the recommendation that you write a custom |
Thanks, @philwebb. We ended up forcing the client applications to either use the default bean name or specify the converter's bean name via property if using a custom one. That got us past the issue. I suspect you're right about the parameterizedContainer in 2.1.17, but it did work for both conditions where it was supplied or not. However, it was probably very fragile and could have broken if some other similar converter was defined. |
I recently upgraded an application from spring-boot 2.1.17 to 2.4.2 and am getting the following error on startup.
The following (simplified) bean definition demonstrates the issue.
This is fully working when the parameterizedContainer only has one parameter, but fails when there are multiple. Looking through the history, this looks to be caused by #17594
The text was updated successfully, but these errors were encountered: