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

minor clean up on specialization code path

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • M3
    • M4
    • Injection and Lookup
    • None

    Description

      Ran some tests on recent driver and found a few Exceptions fired due to multiple invocation of bean.setBeanName( ) when configure specialization. Changes in this patch include:

      1. For class-based specialization, if bean specialization is already configured, skip setting bean name and populating qualifiers
      2. For producer-based specialization, comment out 2 blocks of setBeanName/populating qualifiers in old code path, since that is delayed to configSpecializedProducerMethodBeans() in checkSpecializations step.
      3. Original test case SpecializesProducer1Test will not work, since there is no container and checkSpecializations( ) is not invoked.
      4. migrate new SpecializesProducer1Test to use a container in newtest package.

      Attachments

        1. 308.patch
          7 kB
          Ying Wang

        Activity

          People

            gerdogdu Gurkan Erdogdu
            yingwang Ying Wang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: