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