Commit 242ecdc
committed
Fixed inner bean name determination for multi-level nesting scenario, calculating a unique bean name as early as possible now (and for any kind of bean scope)
Our per-bean caching in AutowiredAnnotationBeanPostProcessor and co relies on unique bean names, so this change fixes potential cache mismatch problems occuring there.
Issue: SPR-111311 parent 5dcd287 commit 242ecdc
File tree
2 files changed
+9
-19
lines changed- spring-beans/src/main/java/org/springframework/beans/factory/support
- spring-context/src/test/java/org/springframework/beans/factory/xml
2 files changed
+9
-19
lines changedLines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
| 259 | + | |
| 260 | + | |
263 | 261 | | |
264 | 262 | | |
265 | 263 | | |
| |||
269 | 267 | | |
270 | 268 | | |
271 | 269 | | |
272 | | - | |
273 | 270 | | |
274 | 271 | | |
275 | 272 | | |
| |||
Lines changed: 7 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | 19 | | |
31 | 20 | | |
32 | 21 | | |
| |||
39 | 28 | | |
40 | 29 | | |
41 | 30 | | |
| 31 | + | |
| 32 | + | |
42 | 33 | | |
43 | 34 | | |
44 | 35 | | |
| |||
73 | 64 | | |
74 | 65 | | |
75 | 66 | | |
76 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
77 | 70 | | |
78 | 71 | | |
79 | 72 | | |
| |||
256 | 249 | | |
257 | 250 | | |
258 | 251 | | |
259 | | - | |
| 252 | + | |
260 | 253 | | |
261 | 254 | | |
262 | 255 | | |
| |||
271 | 264 | | |
272 | 265 | | |
273 | 266 | | |
274 | | - | |
| 267 | + | |
275 | 268 | | |
276 | 269 | | |
277 | 270 | | |
| |||
0 commit comments