You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (Jira)" <ji...@apache.org> on 2022/09/15 06:27:00 UTC
[jira] [Closed] (WW-4059) @Conversion @TypeConversion on nested property
[ https://issues.apache.org/jira/browse/WW-4059?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukasz Lenart closed WW-4059.
-----------------------------
Resolution: Won't Fix
> @Conversion @TypeConversion on nested property
> ----------------------------------------------
>
> Key: WW-4059
> URL: https://issues.apache.org/jira/browse/WW-4059
> Project: Struts 2
> Issue Type: Bug
> Components: Value Stack
> Affects Versions: 2.3.14
> Environment: Windows
> Reporter: D Qiu
> Priority: Major
> Labels: patch
> Fix For: 6.1.0
>
>
> The j.converter is not called on "a.b.id"
> But it called on "a.id". Is this a bug?
> {code:java}
> @Conversion(conversions = {
> @TypeConversion(type = ConversionType.CLASS, key = "a.b.id", converter = "j.converter"),
> @TypeConversion(type = ConversionType.CLASS, key = "a.id", converter = "j.converter")
> })
> public class TestAction extends ActionSupport {
> A a
> ...
> }
> Class A{
> X id;
> B b;
> ...
> }
> Class B{
> X id;
> ...
> }
> ...
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)