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

Cannot add multiple instances of the same annotation to TypeDeclaration #1624

Open
ccarbonellbh opened this issue Feb 7, 2025 · 0 comments
Labels
status: waiting-for-triage An issue we've not yet triaged

Comments

@ccarbonellbh
Copy link

ccarbonellbh commented Feb 7, 2025

TypeDeclaration was updated to use AnnotationContainer (previously a List of Annotations), and the methods exposed only allow for adding a single instance of a given annotation. With the move to AnnotationContainer, I seem to no longer be able to generate code that looks like below:

@PropertySource(value = {"file:${properties.directory}/${properties.file}"}, ignoreResourceNotFound = true, factory = GenericPropertySourceFactory.class)
@PropertySource(value = {"file:${properties.directory}/qa-overrides.properties"}, ignoreResourceNotFound = true)
public class MyApplication extends SpringBootServletInitializer {
...

Is there a suggested way that this should now be handled? Should AnnotationContainer be modified to still support this workflow?

Thank you!

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

No branches or pull requests

2 participants