You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Yasser Zamani (JIRA)" <ji...@apache.org> on 2018/01/10 10:50:00 UTC
[jira] [Created] (WW-4908) Conversion by annotation does not work
Yasser Zamani created WW-4908:
---------------------------------
Summary: Conversion by annotation does not work
Key: WW-4908
URL: https://issues.apache.org/jira/browse/WW-4908
Project: Struts 2
Issue Type: Bug
Components: Core
Affects Versions: 2.5.14.1, 2.3.34
Reporter: Yasser Zamani
Assignee: Yasser Zamani
Fix For: 2.5.15
It's because of following bugs:
{code:title=DefaultConversionAnnotationProcessor.java}
//for properties of classes
else if (tc.rule() != ConversionRule.ELEMENT || tc.rule() == ConversionRule.KEY || tc.rule() == ConversionRule.COLLECTION)
{code}
wrong statement for handling properties (badly imported from {{DefaultConversionFileProcessor.java}}).
{code:title=XWorkConverter.java}
// Default to the property name
if (StringUtils.isEmpty(key)) {
{code}
should also add prefix to key like what are inside {{XXX-validation.properties}} files!
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)