You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Bruno (JIRA)" <ji...@apache.org> on 2014/10/08 13:36:38 UTC

[jira] [Commented] (OWB-1024) DecoratorBeanBuilder : Number of TypeArguments must match - Decorated Type: 2 Delegate Type: 1

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

Bruno commented on OWB-1024:
----------------------------

Tested on 1.2.7-SNAPSHOT.
Cannot run on 1.2.6 because of Jira OWB-992.

> 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)