[ https://issues.apache.org/jira/browse/WW-5352?focusedWorklogId=902341&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-902341 ]
ASF GitHub Bot logged work on WW-5352: -------------------------------------- Author: ASF GitHub Bot Created on: 29/Jan/24 15:41 Start Date: 29/Jan/24 15:41 Worklog Time Spent: 10m Work Description: kusalk commented on PR #865: URL: https://github.com/apache/struts/pull/865#issuecomment-1914964111 So I tried testing this, and it seems without a matching getter, the list will not be populated. It will simply be set to an empty list. The current `@StrutsParameter` logic only checks for annotations on getters when trying to set a collection or model class. My concern was that it might be possible to do this with only a setter. But if not, we can safely close this PR. Issue Time Tracking ------------------- Worklog Id: (was: 902341) Time Spent: 9h 40m (was: 9.5h) > Implement annotation mechanism for injectable fields via parameters > ------------------------------------------------------------------- > > Key: WW-5352 > URL: https://issues.apache.org/jira/browse/WW-5352 > Project: Struts 2 > Issue Type: Improvement > Components: Core, Core Interceptors > Reporter: Kusal Kithul-Godage > Priority: Minor > Fix For: 6.4.0 > > Time Spent: 9h 40m > Remaining Estimate: 0h > > struts.parameters.requireAnnotations > > Require an explicit annotation '@StrutsParameter' on one of: > Getter/Setter/Field/ReturnType for injecting parameters. > > This mechanism is intended to be a more usable replacement for > 'ParameterNameAware' -- This message was sent by Atlassian Jira (v8.20.10#820010)