[
https://issues.apache.org/jira/browse/OWB-568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13036788#comment-13036788
]
Arne Limburg commented on OWB-568:
----------------------------------
As you wrote, it's not that academic at all, because beans may implement
generic interfaces and generic decorators seem to be valid as of the example in
1.3.7 of the spec.
Your bean ViennaZoo may be decorated by the following decorator
@Decorator
public class CityZooDecorator<C extends City> implements Zoo<C>
@Inject @Delegate
private Zoo<C> delegate;
...
}
But I guess this decorator would not applied to the bean
@ApplicationScoped
public class Parliament implements Zoo<Germany> {
...
}
since germany is not a city.
> 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