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

broken proxies in case of bridge methods

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.2.0
    • Labels:
      None

      Description

      it looks like a concurrency issue with interceptor-proxies since it doesn't happen in all cases.

      normal ( /working):
      LifecycleInterceptorInvocationContext#proceed L95

      //reflection calls

      MyReqScopedBean#postConstruct

      MyAppScopedBean$OwbNormalScopeProxy0#myMethod
      MyAppScopedBean$OwbInterceptProxy0#myMethod
      MyAppScopedBean#myMethod
      [injection points ok]

      not working:
      LifecycleInterceptorInvocationContext#proceed L95

      //reflection calls

      MyReqScopedBean#postConstruct

      MyAppScopedBean$OwbNormalScopeProxy0#myMethod
      MyAppScopedBean$OwbInterceptProxy0#myMethod
      MyAppScopedBean$OwbInterceptProxy0#myMethod
      [injection points are null]

      there is only one instance of $$OwbInterceptProxy0 for the bean in question, but the final method call gets executed by the proxy itself instead of its proxied instance.

        Attachments

        1. OWB-828_2.patch
          1 kB
          Gerhard Petracek
        2. OWB-828.patch
          5 kB
          Arne Limburg

          Issue Links

            Activity

              People

              • Assignee:
                gpetracek Gerhard Petracek
                Reporter:
                gpetracek Gerhard Petracek
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: