[EhCacheFactoryBean] diskStorePath property has no effect [SPR-5076] #9750
EhCacheFactoryBean has a diskStorePath property, which is in turn passed to the constructor of net.sf.ehcache.Cache. The resulting Cache object is then passed to CacheManager.addCache. At this point, CacheManager unconditionally stomps on the diskStorePath property of the Cache object, over-writing it with its own diskStorePath value. It seems to do this regardless of the existing version.
Obviously this isn't a bug in Spring per se, but there doesn't seem to be much point in offering the property if the ehcache runtime just throws it away.
This happens both with ehcache 1.4.1 and 1.5.0
The text was updated successfully, but these errors were encountered:
Juergen Hoeller commented
Indeed, even the javadoc of the Cache constructor says the diskStorePath argument will be ignored because CacheManager overwrites it. Weird...
In any case, I've removed EhCacheFactoryBean's "diskStorePath" property as of Spring 2.5.6.