You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Mark Struberg (JIRA)" <ji...@apache.org> on 2010/11/15 21:48:22 UTC

[jira] Created: (OWB-492) events don't get sent to private @Observes methods

events don't get sent to private @Observes methods
--------------------------------------------------

                 Key: OWB-492
                 URL: https://issues.apache.org/jira/browse/OWB-492
             Project: OpenWebBeans
          Issue Type: Bug
          Components: Events
    Affects Versions: 1.0.0
            Reporter: Mark Struberg
            Assignee: Mark Struberg
             Fix For: 1.1.0, 1.0.1


We currently do not notify private observer methods correctly. This is caused by resolving a contextual reference is currently always performed to fulfil section 7.2 of the spec:

"Invocations of producer, disposer and observer methods by the container are business method invocations and are in- tercepted by method interceptors and decorators."

But since private methods are no business methods anyway, we can just resolve the contextual instance instead of the contextual reference in this case

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] [Updated] (OWB-492) events don't get sent to private @Observes methods

Posted by "Mark Struberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OWB-492?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Struberg updated OWB-492:
------------------------------

    Fix Version/s:     (was: 1.0.1)

only fixed in 1.1.0-SNAPSHOT

> events don't get sent to private @Observes methods
> --------------------------------------------------
>
>                 Key: OWB-492
>                 URL: https://issues.apache.org/jira/browse/OWB-492
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Events
>    Affects Versions: 1.0.0
>            Reporter: Mark Struberg
>            Assignee: Mark Struberg
>             Fix For: 1.1.0
>
>
> We currently do not notify private observer methods correctly. This is caused by resolving a contextual reference is currently always performed to fulfil section 7.2 of the spec:
> "Invocations of producer, disposer and observer methods by the container are business method invocations and are in- tercepted by method interceptors and decorators."
> But since private methods are no business methods anyway, we can just resolve the contextual instance instead of the contextual reference in this case

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Commented: (OWB-492) events don't get sent to private @Observes methods

Posted by "Mark Struberg (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OWB-492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12932194#action_12932194 ] 

Mark Struberg commented on OWB-492:
-----------------------------------

fixed in trunk, not sure if we really should enable this in 1.0.1 since it is not a showstopper issue

> events don't get sent to private @Observes methods
> --------------------------------------------------
>
>                 Key: OWB-492
>                 URL: https://issues.apache.org/jira/browse/OWB-492
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Events
>    Affects Versions: 1.0.0
>            Reporter: Mark Struberg
>            Assignee: Mark Struberg
>             Fix For: 1.1.0, 1.0.1
>
>
> We currently do not notify private observer methods correctly. This is caused by resolving a contextual reference is currently always performed to fulfil section 7.2 of the spec:
> "Invocations of producer, disposer and observer methods by the container are business method invocations and are in- tercepted by method interceptors and decorators."
> But since private methods are no business methods anyway, we can just resolve the contextual instance instead of the contextual reference in this case

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] [Resolved] (OWB-492) events don't get sent to private @Observes methods

Posted by "Mark Struberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OWB-492?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Struberg resolved OWB-492.
-------------------------------

    Resolution: Fixed

> events don't get sent to private @Observes methods
> --------------------------------------------------
>
>                 Key: OWB-492
>                 URL: https://issues.apache.org/jira/browse/OWB-492
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Events
>    Affects Versions: 1.0.0
>            Reporter: Mark Struberg
>            Assignee: Mark Struberg
>             Fix For: 1.1.0, 1.0.1
>
>
> We currently do not notify private observer methods correctly. This is caused by resolving a contextual reference is currently always performed to fulfil section 7.2 of the spec:
> "Invocations of producer, disposer and observer methods by the container are business method invocations and are in- tercepted by method interceptors and decorators."
> But since private methods are no business methods anyway, we can just resolve the contextual instance instead of the contextual reference in this case

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira