struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yasser Zamani (JIRA)" <j...@apache.org>
Subject [jira] [Created] (WW-4908) Conversion by annotation does not work
Date Wed, 10 Jan 2018 10:50:00 GMT
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)

Mime
View raw message