Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0040066 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | minor | have not tried | 2019-01-30 12:57 | 2019-02-01 10:12 | |||
Reporter | caristu | View Status | public | |||||
Assigned To | caristu | |||||||
Priority | high | Resolution | no change required | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | caristu | |||||||
Web browser | ||||||||
Modules | Core | |||||||
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 | |||||||
Tags | Approved | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Notes | |
(0109414) caristu (developer) 2019-02-01 10:12 edited on: 2019-02-01 10:12 |
Functional/Behavior change. No additional changes in the API definition are required. |
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 | View Revisions |
2019-02-01 09:58 | caristu | Description Updated | View Revisions |
2019-02-01 10:01 | caristu | Description Updated | View Revisions |
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 | View Revisions |
Copyright © 2000 - 2009 MantisBT Group |