Uploaded image for project: 'CDI TCK'
  1. CDI TCK
  2. CDITCK-274

CreateInjectionPointTest.testInvalidParameter() too strict

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.1.0.Alpha3
    • 1.1.0.Alpha2
    • Tests
    • None
    • Release Notes

    Description

      The method BeanManager.createInjectionPoint() returns a container provided implementation of InjectionPoint for
      a given AnnotatedField or AnnotatedParameter or throws an IllegalArgumentException if there is a definition error
      associated with the injection point.

      However, the definition error in the NotABean class is not associated with the injection point but with an initializer method that defines the injection point.

      public class NotABean {
      
          public NotABean(String name) {
          }
      
          @Inject
          @Produces
          public void init(Magazine magazine) {
          }
      
      }
      

      The specification does not require the defining member nor class to be validated.

      Attachments

        Issue Links

          Activity

            People

              mkouba@redhat.com Martin Kouba
              rhn-engineering-jharting Jozef Hartinger
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty