spring-projects / spring-projects/spring-boot
Improve ways in which configuration property metadata default values can be provided
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 81.5k
- Forks
- 42.7k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 65
Description
The hope is that we could avoid problems like https://github.com/spring-projects/spring-boot/issues/28037. In that case there's a List<String> property with a default value created with new ArrayList<>("…"). The annotation processor can't extract the default value so we rely on an entry in the manual metadata for it. For such a property that doesn't have an entry in the manual metadata, it'd be good if the annotation processor could fail or generate a warning.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by examining Spring Boot's configuration metadata annotation processor and how manual metadata supplies default values. Compare the case described in issue 28037, especially the List default that cannot be extracted. Done should mean properties whose defaults cannot be extracted fail or produce a warning when no manual metadata entry exists.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring-boot
- Domain
- build-system, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100