]
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: