You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2018/05/26 18:59:00 UTC
[jira] [Closed] (POOL-324)
org.apache.commons.pool2.impl.GenericObjectPool.getFactoryType() throws
java.lang.ClassCastException
[ https://issues.apache.org/jira/browse/POOL-324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary Gregory closed POOL-324.
-----------------------------
Resolution: Fixed
Fix Version/s: 2.6.0
Closing: fixed in git master.
> org.apache.commons.pool2.impl.GenericObjectPool.getFactoryType() throws java.lang.ClassCastException
> ----------------------------------------------------------------------------------------------------
>
> Key: POOL-324
> URL: https://issues.apache.org/jira/browse/POOL-324
> Project: Commons Pool
> Issue Type: Bug
> Affects Versions: 2.4.2
> Reporter: Jay Xu
> Priority: Major
> Fix For: 2.6.0
>
>
> org.apache.commons.pool2.impl.GenericObjectPool.getFactoryType() throws java.lang.ClassCastException when wrapping a org.apache.commons.pool2.PoolUtils.SynchronizedPooledObjectFactory.
> Testing code:
> {code:java}
> public static void main(String[] args) {
> GenericObjectPool<String> p = new GenericObjectPool<>(PoolUtils
> .synchronizedPooledFactory(new BasePooledObjectFactory<String>() {
> @Override
> public String create() {
> // fake
> return null;
> }
> @Override
> public PooledObject<String> wrap(String obj) {
> // fake
> return null;
> }
> }));
> System.out.println(p.getFactoryType()); // ex thrown
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)