Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-1024

DecoratorBeanBuilder : Number of TypeArguments must match - Decorated Type: 2 Delegate Type: 1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.6
    • 1.2.7, 1.5.0
    • Core
    • None
    • Windows 7 32bit
      Oracle JDK 1.7.0_51

    Description

      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;
      }

      Attachments

        1. owbdecorator.zip
          6 kB
          Bruno

        Activity

          People

            rsandtner Reinhard Sandtner
            qjafcunuas Bruno
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: