[ 
https://issues.apache.org/jira/browse/SHINDIG-1947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andreas Kohn updated SHINDIG-1947:
----------------------------------

    Attachment: SHINDIG-1947-bridge-methods.diff

Patch against trunk

> Bridge methods should be ignored when finding property setter methods for 
> JSON serialization
> --------------------------------------------------------------------------------------------
>
>                 Key: SHINDIG-1947
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1947
>             Project: Shindig
>          Issue Type: Bug
>          Components: Java
>    Affects Versions: 2.5.0-update1
>            Reporter: Andreas Kohn
>         Attachments: SHINDIG-1947-bridge-methods.diff
>
>
> Serializing classes to JSON that implement a generic interface might fail 
> with a message "duplicate key: <name>".
> The problem is that generics add synthetic bridge methods (see 
> http://stas-blogspot.blogspot.nl/2010/03/java-bridge-methods-explained.html 
> ), so there will be two setters for the same property.
> Fix this by skipping bridge methods when searching for properties.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to