Description
Dennis Kieselhorst opened SPR-8931 and commented
After updating from 3.0.6 to 3.1 the bean creation for java.math.BigDecimal fails with:
Caused by: org.springframework.beans.FatalBeanException: Failed to obtain BeanInfo for class [java.math.BigDecimal]; nested exception is java.beans.IntrospectionException: type mismatch between indexed and non-indexed methods: scale
at org.springframework.beans.CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:262)
at org.springframework.beans.CachedIntrospectionResults.forClass(CachedIntrospectionResults.java:149)
at org.springframework.beans.BeanWrapperImpl.getCachedIntrospectionResults(BeanWrapperImpl.java:324)
at org.springframework.beans.BeanWrapperImpl.getPropertyDescriptors(BeanWrapperImpl.java:331)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.filterPropertyDescriptorsForDependencyCheck(AbstractAutowireCapableBeanFactory.java:1242)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1101)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
... 149 more
Caused by: java.beans.IntrospectionException: type mismatch between indexed and non-indexed methods: scale
at java.beans.IndexedPropertyDescriptor.findIndexedPropertyType(IndexedPropertyDescriptor.java:341)
at java.beans.IndexedPropertyDescriptor.setIndexedWriteMethod(IndexedPropertyDescriptor.java:248)
at org.springframework.beans.ExtendedBeanInfo.addOrUpdatePropertyDescriptor(ExtendedBeanInfo.java:261)
at org.springframework.beans.ExtendedBeanInfo.<init>(ExtendedBeanInfo.java:142)
at org.springframework.beans.CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:224)
... 155 more
Affects: 3.1 GA
Issue Links:
- java.beans.IntrospectionException: type mismatch between indexed and non-indexed methods: <method_name> [SPR-8937] #13577 java.beans.IntrospectionException: type mismatch between indexed and non-indexed methods: <method_name>
- Overhaul non-void JavaBean write method support [SPR-10029] #14663 Overhaul non-void JavaBean write method support
- Regression - Introspection with BeanUtils started failing for java.awt.Component derived classes [SPR-8491] #13137 Regression - Introspection with BeanUtils started failing for java.awt.Component derived classes