No this is perfectly fine. We discussed this recently and there was a bug in Weld. And I guess they just 1:1 moved this bug over to the TCK.
"getAlternatives() returns the ordered list of enabled alternatives for the application. Alternative enabled for a bean archive are not included in the list." Currently only Alternatives with @Priority are 'enabled alternatives _for the application_'! Whereas "Alternative enabled for a bean archive" (means via beans.xml) are explicitly NOT enlisted by this method. Similar wording exists for interceptors and decorators. Please file a CDITCK issue for it. LieGrue, strub > On Friday, 19 December 2014, 19:20, Romain Manni-Bucau > <[email protected]> wrote: > > Hi guys, > > is org.apache.webbeans.config.BeansDeployer#fireAfterTypeDiscoveryEvent > is not correctly implemented? > > getXXX() should return "list of enabled XXX" but we return only > @Priority ones + user should be allowed to remove items from the list > but we don't support it. > > did I misunderstand it? > > Romain Manni-Bucau > @rmannibucau > http://www.tomitribe.com > http://rmannibucau.wordpress.com > https://github.com/rmannibucau >
