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
ConfigurationProperties Not Populated Correctly In Native Image When Getter/Setter Name Is Different #33242
Comments
I can't reproduce this behaviour with either 3.0.0-RC2 or 3.0.0-SNAPSHOT:
If you would like us to spend some more time investigating, please spend some time providing a complete yet minimal sample that reproduces the problem. You can share it with us by pushing it to a separate repository on GitHub or by zipping it up and attaching it to this issue. |
OK, while preparing the sample project, I found the root cause. It is the additional |
Specifically if the field has a different name than its getter/setter (real example
io.awspring.cloud.autoconfigure.core.RegionProperties
):With the following configuration:
When loaded
System.out.println(properties)
prints:If you change the getter and setter to match the field name (i.e.
getStaticRegion
andsetStaticRegion
) the same configuration prints:I'm not sure what the root cause is or if it's a known limitation (Is there any documentation regarding known limitation apart from beta version?), neither do I know where is the right place to file the issue.
The text was updated successfully, but these errors were encountered: