[weld-issues] [JBoss JIRA] Created: (WELDX-169) Alternatives not working with Generic Beans

Pete Muir (JIRA) jira-events at lists.jboss.org
Sun Oct 10 12:45:39 EDT 2010


Alternatives not working with Generic Beans
-------------------------------------------

                 Key: WELDX-169
                 URL: https://jira.jboss.org/browse/WELDX-169
             Project: Weld Extensions
          Issue Type: Bug
          Components: Generic Beans
            Reporter: Pete Muir
             Fix For: 1.0.0.Beta1


Given a definition like:


   @Produces
   @JCloudsBlobStore(provider = "transient", container = CONTAINER)
   @TestContainer
   @RequestScoped
   @Alternative
   public Properties getS3TestContainerProperties(@Resource("aws.properties") Properties awsProperties)
   {
      return awsProperties;
   }

Then all producer methods / fields on the generic bean set should be made alternatives. Furthermore, need to ensure that getBeanClass() is correctly altered to point to the class declaring the above, not the generic managed bean (so that alternatives are correctly enabled).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list