Github user yasserzamani commented on the issue:
https://github.com/apache/struts/pull/153
@aleksandr-m , I modified `ObjectFactory` as below
```java
...
private List<Object> myPrivateInjectQueue;
...
@Inject
public void setContainer(Container container) {
this.container = container;
if(null != this.container && null!=myPrivateInjectQueue &&
myPrivateInjectQueue.size()>0)
{
for(Object obj : myPrivateInjectQueue)
this.container.inject(obj);
myPrivateInjectQueue.clear();
myPrivateInjectQueue=null;
}
}
...
protected Object injectInternalBeans(Object obj) {
if (obj != null) {
if(container != null) container.inject(obj);
else {
if(null==myPrivateInjectQueue)myPrivateInjectQueue=new
ArrayList<Object>();
myPrivateInjectQueue.add(obj);}
}
return obj;
}
```
in your sample I got following ok result :)
```
moving setContainer method to the last element of the array
DateConverter.DateConverter()
moving setContainer method to the last element of the array
DateConverter.DateConverter()
DateConverter.convertToString()
localizedTextProvider=com.opensymphony.xwork2.util.StrutsLocalizedTextProvider@3f6f10fa
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]