commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael C (JIRA)" <>
Subject [jira] [Created] (POOL-338) GenericObjectPool constructor throws an exception
Date Wed, 04 Apr 2018 18:52:00 GMT
Michael C created POOL-338:

             Summary: GenericObjectPool constructor throws an exception
                 Key: POOL-338
             Project: Commons Pool
          Issue Type: Bug
    Affects Versions: 2.5.0, 2.4.3, 2.4.2
            Reporter: Michael C

Version 2.4.3 GenericObjectPool constructor throws this exception:

{{java.lang.IllegalArgumentException: [org.apache.commons.pool2.impl.DefaultEvictionPolicy]
does not implement EvictionPolicy}}
{{    at org.apache.commons.pool2.impl.BaseGenericObjectPool.setEvictionPolicyClassName(}}
{{    at org.apache.commons.pool2.impl.GenericObjectPool.setConfig(}}
{{    at org.apache.commons.pool2.impl.GenericObjectPool.<init>(}}
{{    at org.apache.commons.pool2.impl.GenericObjectPool.<init>(}}


Version 2.5.0 throws the same exception. Version 2.4.2 or older's setEvictionPolicyClassName
method fail silently for the same reason. This line in BaseGenericObjectPool evaluates to
false for all versions:

{{        if (policy instanceof EvictionPolicy<?>) {}}


This message was sent by Atlassian JIRA

View raw message