commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Thomas (JIRA)" <>
Subject [jira] [Resolved] (POOL-289) Wrong ClassLoader used in BaseGenericObjectPool
Date Thu, 14 May 2015 08:59:00 GMT


Mark Thomas resolved POOL-289.
    Resolution: Pending Closed

I've applied the patch as is. On balance I think the TCCL is more likely to be able to resolve
the provided class name than the CL that loaded the current class so it makes sense to try
that first.

> Wrong ClassLoader used in BaseGenericObjectPool
> -----------------------------------------------
>                 Key: POOL-289
>                 URL:
>             Project: Commons Pool
>          Issue Type: Bug
>    Affects Versions: 2.3
>         Environment: All
>            Reporter: Luke Winkenbach
>            Priority: Critical
>             Fix For: 2.4
>         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

View raw message