Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.9
-
Fix Version/s: 2.0.4
-
Component/s: ObjectMapper
-
Labels:
-
Number of attachments :
Description
We used this JSON for testing
{ "magicNumber": 9223372036854775808, }the number was changed according to JSON column
this class was used:
public class User {
private Long _magicNumber;
public Long getMagicNumber()
{return _magicNumber;}public void setMagicNumber(Long m) {_magicNumber = m;}
}
the type of _magicNumber was changed according to range check (Long for check outside Long range, Double for check outside Double...)
issues:
JSON JAVA
-9223372036854775809 9223372036854775807 (Long.MIN_VALUE)
9223372036854775808 -9223372036854775808 (Long.MAX_VALUE+1)
1.4e-46 0 (Float.MIN_VALUE/10)
1.7976931348623157e309 Infinity (Double.MAX_VALUE*10)
4.9e-325 0 (Double.MIN_VALUE/10)
Which Jackson version is this in?