Decorators stack not treated as a true stack
--------------------------------------------
Key: OWB-252
URL: https://issues.apache.org/jira/browse/OWB-252
Project: OpenWebBeans
Issue Type: Bug
Components: Interceptor and Decorators
Affects Versions: M3
Reporter: Joe Bergmark
Assignee: Gurkan Erdogdu
Fix For: M4
The current Decorator stack does not quite behave like a stack. Instead the
Decorators are iterated over, and the actual bean is injected as the Delegate
often leading to the bean getting called multiple times. For example, if you
had a Bean with two Decorators the calls would look like
Dec1 -> Bean
Dec2 > Bean
Bean
with the final call to Bean providing the actual return value, even though the
bean had been called 3 times and Dec 1 and Dec 2 did not participate in the
final call.
Instead the behavior for a simple scenario should be
Dec1 -> Dec2 -> Bean
and then back out the same path.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.