We've already discussed this and opened a CDITCK issue for a similar class. It is entirely illegal. You might find it in OWBs standalone-suite.xml
LieGrue, strub > On Sunday, 14 December 2014, 0:30, Romain Manni-Bucau <[email protected]> > wrote: > > Hi > > do you think org.jboss.cdi.tck.tests.implementation.enterprise.newBean.Wizard > is valid? > > In short: > > @RequestScoped > public class Wizard { > @Inject > @Tame > private Dragon dragon; > > @Produces > @Tame > public Dragon summon(@New Dragon dragon) { > return dragon; > } > } > > so wizard instance is needed to create a dragon (@Produces is not > static) but to call summon to create a dragon we need a wizard... > > happen in <class > name="org.jboss.cdi.tck.tests.implementation.enterprise.newBean.NewEnterpriseBeanTest"/> > but no EE link here > > OWB just gives a stackoverflow (which is not shocking) but I wonder if > that's a CDI/TCK issue or it is on our side > > wdyt? > > Romain Manni-Bucau > @rmannibucau > http://www.tomitribe.com > http://rmannibucau.wordpress.com > https://github.com/rmannibucau >
