Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
In org.springframework.beans.CachedInstrospectionResults there is the code
With IBM's J9 VM on Linux, the BeanInfo returned by Introspector.getBeanInfo can return null for calls to BeanInfo#getMethodDescriptors. For example, this will happen when beanClass is java.io.Serializable.
When this happens the following code in ExtendedBeanInfo will throw a null pointer exception:
I took a look at the latest ExtendedBeanInfo and it looks like it is still prone to a null pointer exception.
Note that the Javadoc for BeanInfo#getMethodDescriptors does say that the method can return null.
Simple test, run the following with Oracle's VM and then IBM's
With Oracle you'll get an array object, with IBM you'll get null.