Commit 2511b1f
Remove PersistentEntity from MappingContext upon mapping metadata initialization errors.
When an error happens inside the AbstractMappingContext, the caching sometimes gets corrupted. That's because some exceptions are caught, others are not. Instead, the error handling that clears out the cache needs to be shifted up one level, resulting in a simpler code block.
Closes #2329
Original pull request: #2367.1 parent 17c8e7f commit 2511b1f
File tree
1 file changed
+9
-13
lines changed- src/main/java/org/springframework/data/mapping/context
1 file changed
+9
-13
lines changedLines changed: 9 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
393 | 391 | | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
| 392 | + | |
399 | 393 | | |
400 | | - | |
401 | | - | |
402 | | - | |
| 394 | + | |
| 395 | + | |
403 | 396 | | |
404 | 397 | | |
405 | 398 | | |
406 | 399 | | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
407 | 403 | | |
408 | 404 | | |
409 | 405 | | |
| |||
0 commit comments