Closed chris-dekker closed 1 year ago
Thank you for reporting this @chris-dekker. But just to make sure, could you show usage? Is the target type ImmutableRangeSet
?
If annotation works, fix might be relatively simple.
cc @JooHyukKim
This seems to be a straightforward issue. Allow me will look into this later today 🙏🏼
Any concrete
ImmutableRangeSet<T>
type fails to deserialize out of the box using theGuavaDeserializers
.Only when explicitly setting
@JsonDeserialize(using = RangeSetDeserializer.class)
on the field does it work correctly.Problem seems to be in the GuavaDeserializers.java. This should check for
RangeSet.class.isAssignableFrom(type.getRawClass())
instead :crossed_fingers: