Uploaded image for project: 'Solder'
  1. Solder
  2. SOLDER-124

Generic beans - alternatives not working

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1.0.Beta2, 3.1.0.Beta3, 3.1.0.Beta5, 3.1.0.CR1, 3.1.0.Final
    • Fix Version/s: Future
    • Component/s: Generic Beans
    • Labels:
      None
    • Environment:
      jboss-as-7.0.1.Final

      Description

      test passes on AS6 and Weld Embedded, fails on AS7 and Glassfish 3.1.1

      testGenericAlternatives(org.jboss.solder.test.bean.generic.alternative.GenericBeanAlternativeTest): null expected:<[Alternative ]Big Bam> but was:<[]Big Bam>
      testGenericProducerMethodAlternatives(org.jboss.solder.test.bean.generic.alternative.GenericBeanAlternativeTest): null expected:<[Alternative ]Big Bam> but was:<[]Big Bam>

        Gliffy Diagrams

          Issue Links

            Activity

            Hide
            lightguard Jason Porter added a comment -

            We're going to need Stuart's help on this one I think.

            Show
            lightguard Jason Porter added a comment - We're going to need Stuart's help on this one I think.
            Hide
            lightguard Jason Porter added a comment -

            Stuart said he'd have time to take a look at this next week.

            Show
            lightguard Jason Porter added a comment - Stuart said he'd have time to take a look at this next week.
            Hide
            jharting Jozef Hartinger added a comment -

            The issue is related to modular deployments (AS7, GF). GenericBeanExtension registers GenericManagedBean instances which use a BeanManager instance internally for dependency injection. The problem is that GenericBeanExtension receives a BeanManager instance for the solder BDA (where the alternatives are not enabled). Therefore, a GenericManagedBean instance always sees the alternatives as disabled although physically the bean class is located in a BDA where the alternatives are enabled.

            Show
            jharting Jozef Hartinger added a comment - The issue is related to modular deployments (AS7, GF). GenericBeanExtension registers GenericManagedBean instances which use a BeanManager instance internally for dependency injection. The problem is that GenericBeanExtension receives a BeanManager instance for the solder BDA (where the alternatives are not enabled). Therefore, a GenericManagedBean instance always sees the alternatives as disabled although physically the bean class is located in a BDA where the alternatives are enabled.
            Hide
            lightguard Jason Porter added a comment -

            Is there a better way to package things up in the test, or some other way to fix this up?

            Show
            lightguard Jason Porter added a comment - Is there a better way to package things up in the test, or some other way to fix this up?
            Hide
            jharting Jozef Hartinger added a comment -

            It's not a problem in the test. It's a bug in how generic beans are implemented. I cannot see an easy way to fix this.

            Show
            jharting Jozef Hartinger added a comment - It's not a problem in the test. It's a bug in how generic beans are implemented. I cannot see an easy way to fix this.

              People

              • Assignee:
                Unassigned
                Reporter:
                maschmid Marek Schmidt
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Development