Hi,

I faced the same problem and found the cause.

Prior to Xwork 2.0.3 the objectTypeDeterminer property in XWorkConverter was initialised using the instance created by the static block in ObjectTypeDeterminerFactory. This static block determines which implementation of the ObjectTypeDeterminer must be instantiated according to the Java version. This was quite useful: no need of extra configuration to get some benefits when using Java5+ versions.

In 2.0.3 the instance of ObjectTypeDeterminer in use is the one created in the Dispatcher (method init_PreloadConfiguration) and the implementation used depends of the value of struts.objectTypeDeterminer in struts.properties, which defaults to struts that points to the non generics implementation.

So applications developed with WebWork or prior Struts 2 versions that are taking benefits of the GenericsObjectTypeDeterminer are broken after migration to Struts 2.0.8 until the struts.objectTypeDeterminer in struts.properties is set to 'tiger'.

As Struts 2 is using Java 5, I guess that the default value of struts.objectTypeDeterminer should be 'tiger'.

And maybe the static block in ObjectTypeDeterminerFactory should be removed; it is a bit confusing when debugging.


Aymeric Levaux <http://www.javablackbelt.com>


Musachy Barroso wrote:
Has anybody taken a look at this?

https://issues.apache.org/struts/browse/WW-1993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41243

regards
musachy


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to