Skip to content

Populate new collections before invoking parameter setters - #619

Open
PHJ2000 wants to merge 1 commit into
cbeust:masterfrom
PHJ2000:fix-464-copying-collection-setter
Open

PHJ2000 wants to merge 1 commit into
cbeust:masterfrom
PHJ2000:fix-464-copying-collection-setter

Conversation

@PHJ2000

@PHJ2000 PHJ2000 commented Oct 13, 2026

Copy link
Copy Markdown

Fixes #464.

Add the first parsed values to a new collection before passing it to the setter. This preserves those values when the setter stores a copy. Subsequent values continue to be added to the collection returned by the getter.

Add regression tests for single values, comma-separated values, repeated options, and their combination.

Validation: ./gradlew test passed on JDK 21 (342 tests).

This branch has not been deployed

No deployments
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.

Collection parameter handling 'forgets' items if a bean manages its own collection

1 participant