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

Wrong ClassLoader used in BaseGenericObjectPool

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Pending Closed
    • 2.3
    • 2.4.1
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: