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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 1.1.PRD
    • 1.1.EDR
    • Portable Extensions
    • None
    • Release Notes

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

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

                Created:
                Updated:
                Resolved: