Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.5.0-beta1
-
None
Description
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()
}
private class Duplicate extends DuplicateBase<String> {
public String getValue()
}
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.