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

        

Reply via email to