commons-beanutils
commons-beanutils copied to clipboard
BEANUTILS-541 - FluentPropertyBeanIntrospector caches corrupted writeMethod (2.x)
trafficstars
https://issues.apache.org/jira/browse/BEANUTILS-541
There is an issue in FluentPropertyBeanIntrospector (at line 144 for 1.9.3), it caches wrong writeMethod in the static cache of java.beans.Introspector when base class has at least two subclasses. Simple snippet to reproduce can be found in covering Jira541TestCase (revert FluentPropertyBeanIntrospector.java changes locally and you'll see the failure).
It is critical, because wrong information is stored globally unless explicit Introspector.flushCaches (or Introspector.flushFromCaches) is called.
Backported for 1.x in #69