Re: Why does CDI.current() include a Default Qualifier?

2017-08-06 Thread John D. Ament
Ok, yes that sounds vaguely familiar. Basically, if no qualifiers are chosen then default should be used, but as soon as you add a qualifier Default should be removed. On Sun, Aug 6, 2017 at 10:03 AM Romain Manni-Bucau wrote: > Dont recall the whole details and 90% sure spec is not that closed

Re: Why does CDI.current() include a Default Qualifier?

2017-08-06 Thread Romain Manni-Bucau
Dont recall the whole details and 90% sure spec is not that closed on that point but if you dont have an implicit default, direct type lookup doesnt work but if another qualifier is set the *implicit* one (not default, only default when implicit) should be stripped IMHO. Le 6 août 2017 14:46, "Joh

Re: Why does CDI.current() include a Default Qualifier?

2017-08-06 Thread John D. Ament
Another issue, which may be related. When I use the following to look up a bean, the bean doesn't have a default qualifier but BeanManager.getReference is attempting to add one beanManager.getReference(bean, bean.getBeanClass(), beanManager.createCreationalContext(bean)) This was just a regular

Why does CDI.current() include a Default Qualifier?

2017-08-06 Thread John D. Ament
Hey guys Before I create a ticket, I wanted to understand from your POV. I'm not sure if it's a spec issue. I noticed in OWB when I do CDI.current().select(SomeClass, someQualifiers) the resulting instance includes a Default qualifier. However, when I do CDI.current().select(SomeClass).select(s