[weld-issues] [JBoss JIRA] (WELD-1053) Event observers not fired when event object is of generic type

GK Ari (JIRA) jira-events at lists.jboss.org
Thu Jan 26 16:22:48 EST 2012


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

GK Ari commented on WELD-1053:
------------------------------

We are facing the same issue with property injection due to multiple inheritance and generics abstraction.

http://stackoverflow.com/questions/8994989/cdi-property-injection-issue-due-to-multiple-inheritance-and-generics-abstracti/9009369?iemail=1#9009369
                
> Event observers not fired when event object is of generic type
> --------------------------------------------------------------
>
>                 Key: WELD-1053
>                 URL: https://issues.jboss.org/browse/WELD-1053
>             Project: Weld
>          Issue Type: Bug
>          Components: Events
>    Affects Versions: 1.1.0.Final
>         Environment: Glassfish 3.1
>            Reporter: Anton Lisovenko
>              Labels: cdi, event, generics
>
> CDI events are not fired when event object is not the compile-defined object, but the generic type. In this case the real object is defined in runtime and this is ok. But the event is not fired.
> Classes example and detailed description is available here (will not paste here so that not to make the description enormous): http://stackoverflow.com/questions/8962446/cdi-events-and-generics
> In addition to classes defined there will paste the entity classes:
> public interface Persistable extends Serializable {
>     Long getId();
>     //...
> }
> and Polis class:
> @Entity
> public class Polis implements Persistable {
>    //... fields and setters/getters here
> }
> Hope this will be enough

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list