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

Update handling for parameterized methods via ConfigProxyFactory #680

Merged
merged 1 commit into from Sep 29, 2023

Conversation

akang31
Copy link
Contributor

@akang31 akang31 commented Sep 28, 2023

Currently, even if a top level prefix is specified in an @configuration annotation, parameterized methods in the body will ignore the prefix.

This change updates this behavior to properly acknowledge the prefix annotation.

This is notably breaking, so we keep backward compatibility for users who compensated by having their parameterized methods include the prefix. However, we will be breaking users that did not include the prefix.

Putting this up for review now, but still following up with a few clients to ensure the safety of this change.

@rgallardo-netflix
Copy link
Contributor

Looks good, let's wait for those users' feedback.

@akang31
Copy link
Contributor Author

akang31 commented Sep 29, 2023

I've received confirmation from the users that this change will not affect them (the properties were either unused, or in decommissioned applications)

@rgallardo-netflix
Copy link
Contributor

👍 Let's merge, then. But also, since there's a visible behavior change, let's remember to bump the next release's minor version to 2.6

@akang31 akang31 merged commit bb7374f into 2.x Sep 29, 2023
6 checks passed
@akang31 akang31 deleted the yongkoo-parameterized-prefix branch September 29, 2023 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@Configuration(prefix = "foo") on an interface, in conjunction with a parameterized @PropertyName fails
2 participants