Uploaded image for project: 'Commons Pool'
  1. Commons Pool
  2. POOL-289

Wrong ClassLoader used in BaseGenericObjectPool

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Pending Closed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.4.1
    • Labels:
      None
    • Environment:

      All

      Description

      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.

        Attachments

        1. classpath_fix.patch
          1 kB
          Luke Winkenbach

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                lukewink Luke Winkenbach
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: