Section 2.2.2 Restricting the Bean Types of a bean
"
The bean types of a bean may be restricted by annotating the bean class or 
producer method or field with the annotation @javax.enterprise.inject.Typed."

I'd rather move the @Typed detection from AbstractAnnotated to out 
BeanAttributesBuilders.

LieGrue,
strub





> On Monday, 22 September 2014, 7:39, Mark Struberg <[email protected]> wrote:
> >T he question is when the @Typed() is to be applied. 
> 
> Can we already apply it to AnnotatedType to fill getTypeClosures() or do we 
> only 
> need to apply it when building the BeanAttributes?
> 
> Will dig in the spec for it.
> 
> LieGrue,
> strub
> 
> 
> 
> 
> 
>>  On Saturday, 20 September 2014, 21:36, Reinhard Sandtner 
> <[email protected]> wrote:
>>  > Hey,
>> 
>>  according the spec, if a @Typed-annotation is explicit specified, only the 
> types 
>>  which are listed and java.lang.Object are bean types of the bean.
>>  the 
>> 
> org.jboss.cdi.tck.tests.extensions.beanManager.beanAttributes.CreateBeanAttributesTest#testBeanAttributesForManagedBeanWithModifiedAnnotatedType
>  
> 
>>  expects the specified type and Object but also the type of the annotated 
> class 
>>  (Mountain).
>> 
>>  i’ve created CDITCK-449 and shipped a pull request so we can exclude this 
> test.
>> 
>>  lg
>>  reini
>> 
>

Reply via email to