mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
getPropertyTypeDescriptor bug fixes
This commit is contained in:
+3
-2
@@ -364,8 +364,9 @@ public class BeanWrapperImpl extends AbstractPropertyAccessor implements BeanWra
|
||||
|
||||
public TypeDescriptor getPropertyTypeDescriptor(String propertyName) throws BeansException {
|
||||
try {
|
||||
PropertyTokenHolder tokens = getPropertyNameTokens(propertyName);
|
||||
PropertyDescriptor pd = getPropertyDescriptorInternal(tokens.actualName);
|
||||
BeanWrapper nestedBw = getNestedBeanWrapper(propertyName);
|
||||
PropertyTokenHolder tokens = getPropertyNameTokens(getFinalPath(nestedBw, propertyName));
|
||||
PropertyDescriptor pd = getPropertyDescriptorInternal(tokens.actualName);
|
||||
if (pd != null) {
|
||||
if (tokens.keys != null) {
|
||||
if (pd.getReadMethod() != null) {
|
||||
|
||||
Reference in New Issue
Block a user