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

we must not use javassist ProxyFactory#setHandler(MethodHandler)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0-alpha-2
    • 1.0.0
    • Core
    • None

    Description

      ProxyFactory.setHandler is deprecated and if used creates memory leaks!

      We must create the ProxyClass without a default method handler and set it after we create a proxy instance of that very class:

      Object proxyInstance = proxyClass.newInstance();
      ((ProxyObject) proxyInstance ).setHandler( ... )

      Attachments

        Activity

          People

            struberg Mark Struberg
            struberg Mark Struberg
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: