I don't understand the reason why Jackson library is parsing wrong dates before 1912. I suppose the problem is the java.util.Date conversion, because the problem persists with Gson.
This is my code:
ObjectMapper mapper = new ObjectMapper();
String tmp = "{"date":"1911-01-01T00:00:00+00:00"}";
Response resp = mapper.readValue(tmp, Response.class);
System.out.println("Date->"+resp.date);
date is a field of type java.util.Date
As you can see, the input is: 1911-01-01T00:00:00+00:00
And the output is: Sun Jan 01 00:09:21 CET 1911
(I don't understand why that time is set)
But If I set this input: 1912-01-01T00:00:00+00:00
The ouput is correct: Mon Jan 01 00:00:00 CET 1912
Only happens with dates before 1912.
Jdk v1.8.0_101
Thanks.