[ 
https://issues.apache.org/jira/browse/WW-5512?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lukasz Lenart updated WW-5512:
------------------------------
    Description: 
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

  was:
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


> 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
>
>
> 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)

Reply via email to