[
https://issues.apache.org/jira/browse/SHINDIG-1736?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13232643#comment-13232643
]
Doug Davies commented on SHINDIG-1736:
--------------------------------------
I'd love for Paul to review as well before shipping since he refactored this
code (or at least was the committer). Also, how does this get picked up by
someone that can commit? Do I need to do anything? Thanks.
> JsonUtil throws IllegalArgumentException if the class it is parsing has any
> duplicate methods
> ---------------------------------------------------------------------------------------------
>
> Key: SHINDIG-1736
> URL: https://issues.apache.org/jira/browse/SHINDIG-1736
> Project: Shindig
> Issue Type: Bug
> Components: Java
> Affects Versions: 2.5.0
> Reporter: Doug Davies
>
> JsonUtil throws
> java.lang.IllegalArgumentException: duplicate key: value
> if the class it is parsing has duplicate methods caused by synthetic methods
> creating for generics. For example:
> private class DuplicateBase<type> {
> public type getValue() {
> return null;
> }
> }
> private class Duplicate extends DuplicateBase<String> {
> public String getValue() {
> return "duplicate";
> }
> }
> If the Duplicate Class is parsed by JsonUtil is will blow up.
> This was introduced by revision 1290973. Before that it did not use the
> guava collection and have this problem.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira