Commit cb9cf45
committed
Restore previous source in Context.withSource calls
Fix `Context.withSource` is the `Binder` to ensure that the previous
source is restored once the callback has completed.
This update is especially important in Spring Boot 3.5+ since indexed
binding calls `withSource` multiple times.
Fixes gh-460391 parent 05906cc commit cb9cf45
File tree
2 files changed
+53
-2
lines changed- spring-boot-project/spring-boot/src
- main/java/org/springframework/boot/context/properties/bind
- test/java/org/springframework/boot/context/properties/bind
2 files changed
+53
-2
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
567 | 567 | | |
568 | 568 | | |
569 | 569 | | |
| 570 | + | |
570 | 571 | | |
571 | 572 | | |
572 | 573 | | |
573 | 574 | | |
574 | 575 | | |
575 | 576 | | |
576 | 577 | | |
| 578 | + | |
577 | 579 | | |
578 | 580 | | |
579 | 581 | | |
| |||
Lines changed: 50 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
126 | 161 | | |
127 | 162 | | |
128 | 163 | | |
| |||
436 | 471 | | |
437 | 472 | | |
438 | 473 | | |
| 474 | + | |
| 475 | + | |
439 | 476 | | |
440 | 477 | | |
441 | 478 | | |
| |||
452 | 489 | | |
453 | 490 | | |
454 | 491 | | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
455 | 500 | | |
456 | 501 | | |
457 | 502 | | |
| |||
562 | 607 | | |
563 | 608 | | |
564 | 609 | | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
565 | 614 | | |
0 commit comments