Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0040066 | Openbravo ERP | A. Platform | public | 2019-01-30 12:57 | 2019-02-01 10:12 | |||||||
Reporter | caristu | |||||||||||
Assigned To | caristu | |||||||||||
Priority | high | Severity | minor | Reproducibility | have not tried | |||||||
Status | closed | Resolution | no change required | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | |||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | caristu | |||||||||||
OBNetwork customer | ||||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0040066: API Change: EntityPersistenceEventObserver declared as an @ApplicationScoped bean | |||||||||||
Description | The fix for issue 0040046 declares the EntityPersistenceEventObserver class as an @ApplicationScoped bean. This is done because having no annotation, classes extending this one are @Dependent by default, which means than on every write operation done with DAL (save, update, delete) a new instance of every EntityPersistenceEventObserver listening to any of those operations is created. This is an API change because by default now there only will be one instance of every class extending EntityPersistenceEventObserver (unless the scope would be overridden in the subclass). Besides, after this API change, event handlers should be proxyable objects for WELD by default. Proxyable classes are those classes which are not final and does not contain any final methods. For this reason, if an @ApplicationScoped event handler is defined as final or with a final method, the following exception will be thrown on server startup: "org.jboss.weld.exceptions.UnproxyableResolutionException: WELD-001437 Normal scoped bean class is not proxyable because the type is final or it contains a final method" Note that it is still possible to define event handlers as Dependent by explicitly using the @Dependent annotation. In that case it is not required to define the event handler as a proxyable class. | |||||||||||
Steps To Reproduce | N/A | |||||||||||
Proposed Solution | ||||||||||||
Additional Information | ||||||||||||
Tags | Approved | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2019-01-30 12:57 | caristu | New Issue | ||||||||||
2019-01-30 12:57 | caristu | Assigned To | => caristu | |||||||||
2019-01-30 12:57 | caristu | Modules | => Core | |||||||||
2019-01-30 12:57 | caristu | Triggers an Emergency Pack | => No | |||||||||
2019-01-30 12:57 | caristu | Issue generated from | 0040046 | |||||||||
2019-01-30 12:57 | caristu | Relationship added | related to 0040046 | |||||||||
2019-01-30 14:04 | alostale | Tag Attached: Approved | ||||||||||
2019-02-01 09:57 | caristu | Description Updated | bug_revision_view_page.php?rev_id=18253#r18253 | |||||||||
2019-02-01 09:58 | caristu | Description Updated | bug_revision_view_page.php?rev_id=18254#r18254 | |||||||||
2019-02-01 10:01 | caristu | Description Updated | bug_revision_view_page.php?rev_id=18255#r18255 | |||||||||
2019-02-01 10:09 | caristu | Status | new => scheduled | |||||||||
2019-02-01 10:12 | caristu | Review Assigned To | => caristu | |||||||||
2019-02-01 10:12 | caristu | Note Added: 0109414 | ||||||||||
2019-02-01 10:12 | caristu | Status | scheduled => closed | |||||||||
2019-02-01 10:12 | caristu | Resolution | open => no change required | |||||||||
2019-02-01 10:12 | caristu | Note Edited: 0109414 | bug_revision_view_page.php?bugnote_id=0109414#r18257 |
Notes | |||||
|
|||||
|
|