Description
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:
- SPR-8491.zip (3.02 kB)
Issue Links:
- ExtendedBeanInfo raises 'type mismatch' error with covariant property types [SPR-8806] #13448 ExtendedBeanInfo raises 'type mismatch' error with covariant property types ("duplicates")
- Regression - Introspection with BeanUtils started failing for java.math.BigDecimal [SPR-8931] #13571 Regression - Introspection with BeanUtils started failing for java.math.BigDecimal
- Overhaul non-void JavaBean write method support [SPR-10029] #14663 Overhaul non-void JavaBean write method support
3 votes, 5 watchers