Comment #2 on issue 386 by
mihai.ch...@gmail.com: Fail if a JSON object has
a duplicated property name
https://code.google.com/p/google-gson/issues/detail?id=386
Couldn't you just check if the attribute already has a value, and if it
does throw an exception? I don't know the details of the implementation,
but I would add something like this:
if (field.get(value) != null) {
throw new DuplicateValueException("Duplicate attribute: " +
field.getName());
}
in ReflectiveTypeAdapterFactory.createBoundField before
field.set(value, fieldValue)
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings