Commit 6d5c502
committed
Harden candidate property descriptor checks
Tighten `isCandidateProperty` to reject null descriptors and properties without a read method, instead of treating missing getters as bindable candidates. Tests were updated to cover null and missing-property cases, verify Object-derived `class` is excluded, and confirm a real bindable property (`ServerProperties.port`) is still accepted.1 parent 233e6dd commit 6d5c502
2 files changed
Lines changed: 15 additions & 2 deletions
File tree
- microsphere-spring-boot-core/src
- main/java/io/microsphere/spring/boot/context/properties/bind
- test/java/io/microsphere/spring/boot/context/properties/bind
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
543 | 543 | | |
544 | 544 | | |
545 | 545 | | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
546 | 549 | | |
547 | | - | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
548 | 554 | | |
549 | 555 | | |
550 | 556 | | |
| |||
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
149 | 150 | | |
150 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
151 | 155 | | |
152 | 156 | | |
153 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
154 | 161 | | |
155 | 162 | | |
156 | 163 | | |
| |||
0 commit comments