Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-486

ResourceBean tries to proxy final classes before testing them for being final

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.1.0, 1.1.9
    • Component/s: Core
    • Labels:
      None

      Description

      When you try to proxy an unproxyiable class, OWB installs its own, unlikely-to-work javassist ProxyFactory.ClassLoaderProvider. This permanently breaks Javassist since there's no way to reinstall the default.

      This is silly, because its much faster to check for finality than to try to construct the proxy factory. Checking for known reasons the proxy can't be created before trying to build the proxy factory avoids this problem.

      Attached patch also avoids an NPE that I've run into in geronimo.

        Attachments

        1. OWB-486.patch
          2 kB
          David Jencks

          Activity

            People

            • Assignee:
              gerdogdu Gurkan Erdogdu
              Reporter:
              djencks David Jencks
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: