Tuomas Kiviaho opened SPR-8491 and commented
java.awt.Component has both
public void setSize(int width, int height)
and
public void setSize(Dimension d)
introspection of classes derived from this base class (using BeanUtils.getPropertyDescriptor) now crashes with following exception
...
Caused by: java.beans.IntrospectionException: type mismatch between indexed and non-indexed methods: size
at java.beans.IndexedPropertyDescriptor.findIndexedPropertyType(IndexedPropertyDescriptor.java:341)
at java.beans.IndexedPropertyDescriptor.setIndexedWriteMethod(IndexedPropertyDescriptor.java:248)
at org.springframework.beans.ExtendedBeanInfo.addOrUpdatePropertyDescriptor(ExtendedBeanInfo.java:233)
at org.springframework.beans.ExtendedBeanInfo.addOrUpdatePropertyDescriptor(ExtendedBeanInfo.java:178)
at org.springframework.beans.ExtendedBeanInfo.<init>(ExtendedBeanInfo.java:108)
at org.springframework.beans.CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:224)
... 92 more
I guess that this can be omitted by first checking whether or not index method really has to be updated or not (it seems to be already null)
Affects: 3.1 M2
Attachments:
Issue Links:
3 votes, 5 watchers