Announcement Announcement Module
Collapse
No announcement yet.
is a bug in org.springframework.cache.ehcache.EhCacheManagerFa ctoryBean Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • is a bug in org.springframework.cache.ehcache.EhCacheManagerFa ctoryBean

    in org.springframework.cache.ehcache.EhCacheManagerFa ctoryBean the code

    public void afterPropertiesSet() throws IOException, CacheException {
    logger.info("Initializing EHCache CacheManager");
    if (this.shared) {
    // Shared CacheManager singleton at the VM level.
    if (this.configLocation != null) {
    this.cacheManager = CacheManager.create(this.configLocation.getInputSt ream());
    }
    else {
    this.cacheManager = CacheManager.create();
    }
    }
    else {
    // Independent CacheManager instance (the default).
    if (this.configLocation != null) {
    this.cacheManager = new CacheManager(this.configLocation.getInputStream()) ;
    }
    else {
    this.cacheManager = new CacheManager();
    }
    }
    if (this.cacheManagerName != null) {
    this.cacheManager.setName(this.cacheManagerName);
    }
    }


    in this.cacheManager = new CacheManager(this.configLocation.getInputStream()) ; the inputstream not close, is it a bug? help me !!
Working...
X