-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: bugA general bugA general bug
Milestone
Description
Phil Webb opened SPR-15507 and commented
Someone from the community raised this to me:
The Property
class includes the following:
int index = this.writeMethod.getName().indexOf("set") + 3;
if (index == -1) {
throw new IllegalArgumentException("Not a setter method");
}
Since the index
is set with +3
there's no way for the exception to throw.
See
spring-framework/spring-core/src/main/java/org/springframework/core/convert/Property.java
Line 146 in 3b8b350
int index = this.writeMethod.getName().indexOf("set") + 3; |
Affects: 4.3.8
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: bugA general bugA general bug