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

BeanManager.createBean() should use type variables instead of wildcards

    XMLWordPrintable

Details

    • Release Notes

    Description

      public Bean<?> createBean(BeanAttributes<?> attributes, Class<?> beanClass, InjectionTarget<?> injectionTarget)
      public Bean<?> createBean(BeanAttributes<?> attributes, Class<?> beanClass, Producer<?> producer)
      

      I propose:

      public <T> Bean<T> createBean(BeanAttributes<T> attributes, Class<T> beanClass, InjectionTarget<T> injectionTarget)
      public <T> Bean<T> createBean(BeanAttributes<T> attributes, Class<?> beanClass, Producer<T> producer);
      

      Attachments

        Issue Links

          Activity

            People

              pmuiratbleepbleep Pete Muir
              rhn-engineering-jharting Jozef Hartinger
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: