in BeanUtilsBean.setProperty method, a call to PropertyDescriptor.getReadMethod
should call getWriteMethod. code writing mistakes which would issue in
incorrect and unexpected result.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: BEANUTILS-394
URL: https://issues.apache.org/jira/browse/BEANUTILS-394
Project: Commons BeanUtils
Issue Type: Bug
Components: Bean / Property Utils
Affects Versions: 1.8.3
Environment: Windows 7 64bit.
Reporter: Yi, Han
Priority: Critical
in edition 1.8.3 of the BeanUtilsBean's setProperty method, line 962, when
judging if the bean has no writing method, it will return and don't process the
setting method, what the codes have been written were:
} else if (key != null) {
if (descriptor.getReadMethod() == null) {
if (log.isDebugEnabled()) {
log.debug("Skipping read-only property");
}
return; // Read-only, skip this property setter
}
type = (value == null) ? Object.class : value.getClass();
}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira