[ 
https://issues.apache.org/jira/browse/OWB-568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13036770#comment-13036770
 ] 

Mark Struberg commented on OWB-568:
-----------------------------------

Digging deeper into this revealed a few other issues. In general I'd like to 
note that all the Generic Interceptor stuff is highly accademical imo, because 
only @Dependent beans might be generics at all!

See section 3.1 of the spec:
> 3.1. Managed beans
> ...
> If the managed bean class is a generic type, it must have scope @Dependent. 
> If a managed bean with a parameterized bean class declares any scope other 
> than @Dependent, 
> the container automatically detects the problem and treats it as a definition 
> error.

Thus it's only possible to decorate @Dependent generic beans which kinda sucks 
;)


> Decorater for generic Interfaces does not work
> ----------------------------------------------
>
>                 Key: OWB-568
>                 URL: https://issues.apache.org/jira/browse/OWB-568
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Interceptor and Decorators
>    Affects Versions: 1.1.0
>            Reporter: Arne Limburg
>            Assignee: Mark Struberg
>         Attachments: OWB-568.patch, OWB-568.zip
>
>
> When a Decorator implements an interface with a generic type argument, the 
> check to compare the decorator type and the type of the delegate injection 
> point always fails.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to