commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luke Winkenbach (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (POOL-289) Wrong ClassLoader used in BaseGenericObjectPool
Date Wed, 18 Feb 2015 23:23:11 GMT

     [ https://issues.apache.org/jira/browse/POOL-289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Luke Winkenbach updated POOL-289:
---------------------------------
    Attachment: classpath_fix.patch

Here is a patch which fixes the issue.

> Wrong ClassLoader used in BaseGenericObjectPool
> -----------------------------------------------
>
>                 Key: POOL-289
>                 URL: https://issues.apache.org/jira/browse/POOL-289
>             Project: Commons Pool
>          Issue Type: Bug
>    Affects Versions: 2.3
>         Environment: All
>            Reporter: Luke Winkenbach
>            Priority: Critical
>         Attachments: classpath_fix.patch
>
>
> BaseGenericObjectPool uses Class.forName to load an EvictionPolicy with the thread context
ClassLoader.  This does not work in OSGi environments.  If the class load fails with the thread
context ClassLoader, the code should attempt to load using the BaseGenericObjectPool class's
ClassLoader as well.  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message