[
https://issues.apache.org/jira/browse/WW-4908?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lukasz Lenart resolved WW-4908.
-------------------------------
Resolution: Fixed
PR got merged, thanks!
> 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.3.34, 2.5.14.1
> Reporter: Yasser Zamani
> Assignee: Yasser Zamani
> Priority: Major
> Labels: annotation, conversion
> 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
(v7.6.3#76005)