[
https://issues.apache.org/jira/browse/OWB-260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joe Bergmark updated OWB-260:
-----------------------------
Attachment: combinedStack.patch
Attached a patch that checks to see if there are both Interceptors &
Decorators, and if so creates a new Interceptor and associated InterceptorData
to add to the Interceptor stack to provide the entry point into the Decorators.
I'm attaching a patch for now so this doesn't affect the M4 release. Will
commit afterwards assuming no negative reactions to this approach.
Unit test code also included in the patch.
> Handle Interceptors and Decorators properly when both are applied to a bean
> ---------------------------------------------------------------------------
>
> Key: OWB-260
> URL: https://issues.apache.org/jira/browse/OWB-260
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Interceptor and Decorators
> Affects Versions: M3
> Reporter: Joe Bergmark
> Assignee: Joe Bergmark
> Fix For: 1.0.0
>
> Attachments: combinedStack.patch
>
>
> Currently the Interceptor and Decorator stack invocations occur separately
> and not as part of one larger stack.
> The most obvious solution I have been considering is checking the size of the
> Interceptor & Decorator stacks, and if they are both >0, adding a new
> Interceptor to the end of that stack that can act as the entry point into the
> first Decorator. I think this is fairly straight forward.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.