[
https://issues.apache.org/jira/browse/OWB-1024?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14200547#comment-14200547
]
Reinhard Sandtner commented on OWB-1024:
----------------------------------------
Hi,
the problem is, that the "super" interface has 2 type parameters the
sub-interface has only one and the fix for OWB-992 checks that the number of
type parameters must match. maybe this is not correct... i've to take a look at
the spec
i'll add a test and try to fix it if i find some time this weekend
> DecoratorBeanBuilder : Number of TypeArguments must match - Decorated Type:
> 2 Delegate Type: 1
> -----------------------------------------------------------------------------------------------
>
> Key: OWB-1024
> URL: https://issues.apache.org/jira/browse/OWB-1024
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.2.6
> Environment: Windows 7 32bit
> Oracle JDK 1.7.0_51
> Reporter: Bruno
> Attachments: owbdecorator.zip
>
>
> see attach maven example, throws exception :
> java.lang.RuntimeException:
> org.apache.webbeans.exception.inject.DeploymentException:
> org.apache.webbeans.exception.WebBeansConfigurationException: Decorator:
> org.apache.webbeans.component.creation.DecoratorBeanBuilder@125d53a Number of
> TypeArguments must match - Decorated Type: 2 Delegate Type: 1
> at
> org.apache.myfaces.extensions.cdi.test.owb.AbstractOpenWebBeansTestContainer.startContainer(AbstractOpenWebBeansTestContainer.java:51)
> public interface IService<O extends Object, T extends Object> {
> boolean test(final O value);
> }
> public interface IExtendService<S extends Serializable> extends
> IService<S, Number> {
> boolean another(final S value);
> }
> @Decorator
> public abstract class ServiceDecorator<S extends Serializable> implements
> IExtendService<S> {
> @Inject
> @Delegate
> @Any
> private IExtendService<S> delegate;
> }
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)