• Bug
  • Status: Closed
  • 2 Major
  • Resolution: Fixed
  • ehcache-core
  • gjayapra
  • Reporter: dma_k
  • July 28, 2011
  • 0
  • Watchers: 1
  • January 17, 2013
  • August 16, 2011

Description

As {{\}\} is not enforced by XSD, the core code should be able to handle situation, when it is not defined.

At the moment: * CacheManager.init():338 performs the check {noformat}if (localConfiguration.getDefaultCacheConfiguration() != null &&{noformat} * ConfigurationHelper.createDefaultCacheDecorators():357 performs the check {noformat}defaultCacheDecoratorConfigurations = defaultCacheConfiguration == null ? null : …{noformat} * ConfigurationHelper.createDefaultCache():213 performs the check {noformat}if (cacheConfiguration == null) { return null; }{noformat} * DefaultCacheConfigurationElement.init():47 performs the check {noformat}if (cacheConfiguration == null) { return; }{noformat} but: * HibernateUtil.loadAndCorrectConfiguration():51 misses the check

Expected: {noformat}if (config.getDefaultCacheConfiguration() != null && config.getDefaultCacheConfiguration().isTerracottaClustered()) {{noformat}

Comments

Gautam Jayaprakash 2011-08-02

Alex, can you check this out and let us know if there is something we should fix soon? Can you assign it back when done?

Alexander Snaps 2011-08-16

Fixed it on trunk. Now, it needs to be fixed in Hibernate’s code as well (for 4.0, which isn’t out yet). I’ll create a jira with them and will fix that for there as well…