[weld-issues] [JBoss JIRA] Issue Comment Edited: (WELD-579) @Observed generic events are not Decorated

Aslak Knutsen (JIRA) jira-events at lists.jboss.org
Tue Sep 21 12:28:28 EDT 2010


    [ https://jira.jboss.org/browse/WELD-579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12552116#action_12552116 ] 

Aslak Knutsen edited comment on WELD-579 at 9/21/10 12:26 PM:
--------------------------------------------------------------

Decorators.getWeldClassOfDecoratedType ignores the actuallTypeArgument on the given Type when creating the WeldClass for extracting the WeldMethods. Resulting in Service.on(T) = Service.on(Object). DecoratorProxyMethodHandler can not find the called Service.on(Dog) method on the Decorator and calls the ServiceImpl directly instead.

      was (Author: aslak):
    Decorators.getWeldClassOfDecoratedType ignores the actuallTypeArgument on the given Type when creating the WeldClass for extracting the WeldMEthods. Resulting in Service.on(T) = Service.on(Object). DecoratorProxyMethodHandler can not find the called Service.on(Dog) method on the Decorator and calls the ServiceImpl directly instead.
  
> @Observed generic events are not Decorated
> ------------------------------------------
>
>                 Key: WELD-579
>                 URL: https://jira.jboss.org/browse/WELD-579
>             Project: Weld
>          Issue Type: Bug
>          Components: Events, Interceptors and Decorators
>    Affects Versions: 1.0.1.Final
>            Reporter: Aslak Knutsen
>            Assignee: Marius Bogoevici
>            Priority: Minor
>             Fix For: 1.1.0.Beta2
>
>
> When Decorating a Bean that @Observes a Generic Event the decorator is not called.
> e.g:
> ServiceImpl implements Service<Dog>
> {
>   public void on(@Observes Dog dog);
> }
> ServiceDecorator implements Service<Dog> 
> {
>   @Inject @Delegate
>   private Service<Dog> service;
>   ...
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list