linkedin / rest.li

Rest.li is a REST+JSON framework for building robust, scalable service architectures using dynamic discovery and simple asynchronous APIs.
rest.li
Other
2.51k stars 546 forks source link

fix translation of float/double's -Infinity/Infinity/NaN #886

Closed dg-builder closed 1 year ago

dg-builder commented 1 year ago

Bug fix - The scenario is as follows:

This flow throws an exception because those double values are serialized as strings (Infinity, -Infinity, NaN) and are then attempted to be deserialized directly into a Double (ClassCastException: java.lang.String cannot be cast to java.lang.Number).