提交 431c7ff3 编写于 作者: J Juergen Hoeller

SpEL correctly handles "is" accessors with Boolean return type

Issue: SPR-10091
上级 bda07059
......@@ -330,7 +330,7 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
getterName = "is" + propertyWriteMethodSuffix;
for (Method method : ms) {
if (!method.isBridge() && method.getName().equals(getterName) && method.getParameterTypes().length == 0 &&
boolean.class.equals(method.getReturnType()) &&
(boolean.class.equals(method.getReturnType()) || Boolean.class.equals(method.getReturnType())) &&
(!mustBeStatic || Modifier.isStatic(method.getModifiers()))) {
return method;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册