Change By: Ron Šmeral (26/Nov/12 1:23 PM)
Description: Currently the (skipped) {{AccessibleAlternativesTest}} tests for something that is not guaranteed by the spec.
It assumes that in the following layout (simplified, all files in appropriate folders):

{noformat}
WAR
  AccessibleAlternativesTest.class
  AUser.class

  JAR
    beans.xml (defines
 B  BUser  as alternative)
    BUser.class (Alternative)
    IUser.class
 
{noformat}

the {{BUser}} class will be injected into {{IUser}} injection point in {{AccessibleAlternativesTest}}.
This, however, can't work because {{BUser}} is defined as an alternative only for the JAR bean archive and therefore is not found as an alternative in the WAR bean archive. 

As per CDI 1.0, 5.1.1,
bq. An alternative must be explicitly declared using the {{<alternatives>}} element of the {{beans.xml}} file *of the bean archive*.
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira