[ https://issues.apache.org/jira/browse/WW-5512?focusedWorklogId=950959&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-950959 ]
ASF GitHub Bot logged work on WW-5512: -------------------------------------- Author: ASF GitHub Bot Created on: 05/Jan/25 16:45 Start Date: 05/Jan/25 16:45 Worklog Time Spent: 10m Work Description: lukaszlenart opened a new pull request, #1175: URL: https://github.com/apache/struts/pull/1175 WW-5512 Issue Time Tracking ------------------- Worklog Id: (was: 950959) Remaining Estimate: 0h Time Spent: 10m > Support injecting empty optional parameters into constructors > ------------------------------------------------------------- > > Key: WW-5512 > URL: https://issues.apache.org/jira/browse/WW-5512 > Project: Struts 2 > Issue Type: Improvement > Components: Core > Reporter: Lukasz Lenart > Priority: Minor > Fix For: 6.8.0, 7.1.0 > > Time Spent: 10m > Remaining Estimate: 0h > > Currently such declaration won't work: > {code:java} > public class StrutsBean { > private final String devMode; > @Inject(value = StrutsConstants.STRUTS_DEV_MODE, required = false) > public StrutsCspNonceReader(String devMode) { > this.devMode = devMode > } > } > {code} > as it will fail no being able to find a proper constructor -- This message was sent by Atlassian Jira (v8.20.10#820010)