Uploaded image for project: 'CDI Specification Issues'
  1. CDI Specification Issues
  2. CDI-376

BeanManager#getProducerFactory return type differs between API and spec

XMLWordPrintable

      return type differs between API and spec wording for both BeanManager#getProducerFactory methods.

      In API we have
      public <X> ProducerFactory<X> getProducerFactory(AnnotatedMethod<? super X> method, Bean<X> declaringBean);

      While in spec (section 11.3.22 )we have
      public <X> ProducerFactory<? super X> getProducerFactory(AnnotatedMethod<? super X> method, Bean<X> declaringBean);

      They differ in the return type:
      ProducerFactory<X> vs ProducerFactory<? super X>

              asabotdu@redhat.com Antoine Sabot-Durand (Inactive)
              struberg Mark Struberg (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: