Commit b05965f
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 edc7153 commit b05965f
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 | |
|---|---|---|---|
| |||
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
386 | 384 | | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
| 385 | + | |
392 | 386 | | |
393 | | - | |
394 | | - | |
395 | | - | |
| 387 | + | |
| 388 | + | |
396 | 389 | | |
397 | 390 | | |
398 | 391 | | |
399 | 392 | | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
400 | 396 | | |
401 | 397 | | |
402 | 398 | | |
| |||
0 commit comments