@@ -165,7 +165,7 @@ public boolean[] deserialize(JsonParser jp, DeserializationContext ctxt)
165
165
chunk [ix ++] = value ;
166
166
}
167
167
} catch (Exception e ) {
168
- throw JsonMappingException .wrapWithPath (e , chunk , ix );
168
+ throw JsonMappingException .wrapWithPath (e , chunk , builder . bufferedSize () + ix );
169
169
}
170
170
return builder .completeAndClearBuffer (chunk , ix );
171
171
}
@@ -245,7 +245,7 @@ public byte[] deserialize(JsonParser jp, DeserializationContext ctxt)
245
245
chunk [ix ++] = value ;
246
246
}
247
247
} catch (Exception e ) {
248
- throw JsonMappingException .wrapWithPath (e , chunk , ix );
248
+ throw JsonMappingException .wrapWithPath (e , chunk , builder . bufferedSize () + ix );
249
249
}
250
250
return builder .completeAndClearBuffer (chunk , ix );
251
251
}
@@ -308,7 +308,7 @@ public short[] deserialize(JsonParser jp, DeserializationContext ctxt)
308
308
chunk [ix ++] = value ;
309
309
}
310
310
} catch (Exception e ) {
311
- throw JsonMappingException .wrapWithPath (e , chunk , ix );
311
+ throw JsonMappingException .wrapWithPath (e , chunk , builder . bufferedSize () + ix );
312
312
}
313
313
return builder .completeAndClearBuffer (chunk , ix );
314
314
}
@@ -362,7 +362,7 @@ public int[] deserialize(JsonParser jp, DeserializationContext ctxt)
362
362
chunk [ix ++] = value ;
363
363
}
364
364
} catch (Exception e ) {
365
- throw JsonMappingException .wrapWithPath (e , chunk , ix );
365
+ throw JsonMappingException .wrapWithPath (e , chunk , builder . bufferedSize () + ix );
366
366
}
367
367
return builder .completeAndClearBuffer (chunk , ix );
368
368
}
@@ -415,7 +415,7 @@ public long[] deserialize(JsonParser jp, DeserializationContext ctxt)
415
415
chunk [ix ++] = value ;
416
416
}
417
417
} catch (Exception e ) {
418
- throw JsonMappingException .wrapWithPath (e , chunk , ix );
418
+ throw JsonMappingException .wrapWithPath (e , chunk , builder . bufferedSize () + ix );
419
419
}
420
420
return builder .completeAndClearBuffer (chunk , ix );
421
421
}
@@ -467,7 +467,7 @@ public float[] deserialize(JsonParser jp, DeserializationContext ctxt)
467
467
chunk [ix ++] = value ;
468
468
}
469
469
} catch (Exception e ) {
470
- throw JsonMappingException .wrapWithPath (e , chunk , ix );
470
+ throw JsonMappingException .wrapWithPath (e , chunk , builder . bufferedSize () + ix );
471
471
}
472
472
return builder .completeAndClearBuffer (chunk , ix );
473
473
}
@@ -518,7 +518,7 @@ public double[] deserialize(JsonParser jp, DeserializationContext ctxt)
518
518
chunk [ix ++] = value ;
519
519
}
520
520
} catch (Exception e ) {
521
- throw JsonMappingException .wrapWithPath (e , chunk , ix );
521
+ throw JsonMappingException .wrapWithPath (e , chunk , builder . bufferedSize () + ix );
522
522
}
523
523
return builder .completeAndClearBuffer (chunk , ix );
524
524
}
0 commit comments