[weld-issues] [JBoss JIRA] Updated: (WELD-456) Example of transactional observer won't compile

Pete Muir (JIRA) jira-events at lists.jboss.org
Mon Mar 1 13:00:10 EST 2010


     [ https://jira.jboss.org/jira/browse/WELD-456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pete Muir updated WELD-456:
---------------------------

    Fix Version/s: 1.0.2.CR1


> Example of transactional observer won't compile
> -----------------------------------------------
>
>                 Key: WELD-456
>                 URL: https://jira.jboss.org/jira/browse/WELD-456
>             Project: Weld
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 1.0.1.Final
>            Reporter: Matthieu Chase Heimer
>            Priority: Minor
>             Fix For: 1.0.2.CR1
>
>
> From the last code example in section 11.7: http://docs.jboss.org/weld/reference/1.0.1-Final/en-US/html_single/#d0e4211
> I think you meant for that second addProduct method to be named something else.
> @ApplicationScoped @Singleton
> public class Catalog {
>    void addProduct(@Observes(during = AFTER_SUCCESS) @Created Product product) {
>       products.add(product);
>    }
>    void addProduct(@Observes(during = AFTER_SUCCESS) @Deleted Product product) {
>       products.remove(product);
>    }
> }

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

        


More information about the weld-issues mailing list