Issue Type: Bug Bug
Assignee: Unassigned
Created: 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):

WAR
  AccessibleAlternativesTest.class
  AUser.class

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

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,

An alternative must be explicitly declared using the <alternatives> element of the beans.xml file of the bean archive.

Project: Weld
Priority: Major Major
Reporter: Ron Šmeral
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