[cdi-dev] Type closure
arne.limburg at openknowledge.de
Sat Jan 5 07:58:42 EST 2013
Thanks for the pointer.
It seems not consistent to me, but obviously it is spec-conform :-)
Von: Jozef Hartinger <jharting at redhat.com<mailto:jharting at redhat.com>>
Datum: Samstag, 5. Januar 2013 13:55
An: Arne Limburg <arne.limburg at openknowledge.de<mailto:arne.limburg at openknowledge.de>>
Cc: cdi-dev <cdi-dev at lists.jboss.org<mailto:cdi-dev at lists.jboss.org>>
Betreff: Re: [cdi-dev] Type closure
"If a return type is primitive or is a Java array type, the unrestricted set of bean types contains exactly two types: the
method return type and java.lang.Object."
On 01/05/2013 12:11 PM, Arne Limburg wrote:
I just stumbled about the org.jboss.jsr299.tck.tests.implementation.producer.field.definition.ProducerFieldDefinitionTest.testApiTypeForArrayTypeReturn test from the tck,
which tests (among other things) that a bean of type Spider-array has just two types: Spider.class and Object.class. This makes me wonder, since Spider also implements Clonable and Serializable. So my question:
Do Clonable and Serializable belong to the type closure of a bean? If not, where can I find the corresponding part in the spec?
cdi-dev mailing list
cdi-dev at lists.jboss.org<mailto:cdi-dev at lists.jboss.org>https://lists.jboss.org/mailman/listinfo/cdi-dev
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cdi-dev