[ 
https://issues.apache.org/jira/browse/DELTASPIKE-401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark Struberg resolved DELTASPIKE-401.
--------------------------------------

    Resolution: Fixed
    
> change GlobalAlternativeTest to work on Weld-2, Weld-1 and OWB
> --------------------------------------------------------------
>
>                 Key: DELTASPIKE-401
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-401
>             Project: DeltaSpike
>          Issue Type: Task
>          Components: Core
>    Affects Versions: 0.4
>            Reporter: Mark Struberg
>            Assignee: Mark Struberg
>             Fix For: 0.5
>
>
> Our GlobalAlternativeTest currently doesn't work under Weld-2 because this 
> version does more checks at startup and complains about classes which are 
> listed as <alternatives> in beans.xml but their @Alternative annotation got 
> removed via Extension. This behaviour is ok as per the spec (it's not defined 
> _when_ this check needs to be done). 
> This means we need to remove the <alternatives> from our 
> GlobalAlternativeTest. But this did break older OWB versions due to a bug in 
> the AnnotatedType handling (older OWB versions did take the Alternative info 
> too early and directly from the Class. This got only fixed in owb-1.2.1).
> As OWB has globalAlternatives on by default and does not need the 
> configuration via DeltaSpike, this is barely an issue in real world apps. 
> Thus I'd say we just add the <alternatives> to the test beans.xml in case we 
> detect OWB but do not do this otherwise.

--
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

Reply via email to