• Bug
  • Status: Closed
  • 2 Major
  • Resolution: Fixed
  • ehcache-core
  • cdennis
  • Reporter: cstoeber
  • November 23, 2011
  • 0
  • Watchers: 2
  • July 27, 2012
  • January 04, 2012

Description

It seems to be an copy-paste error.

    /**
     * Sets the default SizeOfPolicyConfiguration for this cache manager.
     *
     * @param sizeOfPolicyConfiguration the SizeOfPolicy Configuration
     */
    public final void addSizeOfPolicy(SizeOfPolicyConfiguration sizeOfPolicyConfiguration) {
        if (transactionManagerLookupConfiguration != null) {
            throw new ObjectExistsException("The SizeOfPolicy class has already been configured");
        }
        this.sizeOfPolicyConfiguration = sizeOfPolicyConfiguration;
    }

Comments

Steve Harris 2011-11-23

Nice catch! Just curious how you ran into this?

Christian Stoeber 2011-11-24

I was testing EHC 2.5 with the sample ehcache.xml. After uncommenting the SizeOfPolicy I ran into this exception because the TransactionManagerLookup is defined at the beginning of the sample ehcache.xml.