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 11:53:33 UTC
[jira] [Created] (OWB-1024) DecoratorBeanBuilder : Number of
TypeArguments must match - Decorated Type: 2 Delegate Type: 1
Bruno created OWB-1024:
--------------------------
Summary: 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
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)