You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by Reinhard Sandtner <re...@gmail.com> on 2014/09/11 21:06:55 UTC
BeanAttributes#getStereotypes
Hey guys,
i try to fix org.jboss.cdi.tck.tests.extensions.lifecycle.processBeanAttributes.broken.invalid.InvalidStereotypeTest but i got no idea why a DefinitionException is expected.
In org.jboss.cdi.tck.tests.extensions.lifecycle.processBeanAttributes.broken.invalid.InvalidStereotypeExtension they override getStereotypes() and return <null> (maybe they want to return the org.jboss.cdi.tck.tests.extensions.lifecycle.processBeanAttributes.broken.invalid.PlainOldAnnotation which is no stereotype)
i’m not sure if it’s not allowed to return <null> in getStereotypes() (spec: 2.8 Stereotypes… A bean may declare zero, one or multiple stereotypes.) or if there is a bug in the tck?
lg
reini
Re: BeanAttributes#getStereotypes
Posted by Mark Struberg <st...@yahoo.de>.
I agree, returning null is perfectly valid and shall get treated the same as an empty Set.
I created CDITCK-444
LieGrue,
strub
On Thursday, 11 September 2014, 23:00, Arne Limburg <ar...@openknowledge.de> wrote:
>
>
>Hi Reini,
>
>I took a look at the test you mention and into the spec, too.
>I guess, the test is dedicated to "Any bean which has its bean attributes
>altered must have it¹s definition validated during deployment validation.",
>but I agree with you, that the spec nowhere states that getStereotypes()
>may not return null.
>
>So what to do with it?
>
>Write a mail to the cdi-dev list (cdi-dev@lists.jboss.org) and post your
>question there.
>
>If no one can tell you, where in the spec is specified that
>getStereotypes() may not return null, I¹ll open an issue for the tck at
>(https://issues.jboss.org/browse/CDITCK) and we¹ll exclude that test until
>the issue is resolved.
>Btw. we should open a spec issue for CDI 2.0, too, to clarify, if
>getQualifiers(), getStereotypes() and so on may return null.
>
>Cheers,
>Arne
>
>
>
>Am 11.09.14 21:06 schrieb "Reinhard Sandtner" unter
><re...@gmail.com>:
>
>>Hey guys,
>>
>>i try to fix
>>org.jboss.cdi.tck.tests.extensions.lifecycle.processBeanAttributes.broken.
>>invalid.InvalidStereotypeTest but i got no idea why a DefinitionException
>>is expected.
>>
>>In
>>org.jboss.cdi.tck.tests.extensions.lifecycle.processBeanAttributes.broken.
>>invalid.InvalidStereotypeExtension they override getStereotypes() and
>>return <null> (maybe they want to return the
>>org.jboss.cdi.tck.tests.extensions.lifecycle.processBeanAttributes.broken.
>>invalid.PlainOldAnnotation which is no stereotype)
>>
>>i¹m not sure if it¹s not allowed to return <null> in getStereotypes()
>>(spec: 2.8 StereotypesŠ A bean may declare zero, one or multiple
>
>>stereotypes.) or if there is a bug in the tck?
>>
>>lg
>>reini
>
>
>
Re: BeanAttributes#getStereotypes
Posted by Arne Limburg <ar...@openknowledge.de>.
Hi Reini,
I took a look at the test you mention and into the spec, too.
I guess, the test is dedicated to "Any bean which has its bean attributes
altered must have it¹s definition validated during deployment validation.",
but I agree with you, that the spec nowhere states that getStereotypes()
may not return null.
So what to do with it?
Write a mail to the cdi-dev list (cdi-dev@lists.jboss.org) and post your
question there.
If no one can tell you, where in the spec is specified that
getStereotypes() may not return null, I¹ll open an issue for the tck at
(https://issues.jboss.org/browse/CDITCK) and we¹ll exclude that test until
the issue is resolved.
Btw. we should open a spec issue for CDI 2.0, too, to clarify, if
getQualifiers(), getStereotypes() and so on may return null.
Cheers,
Arne
Am 11.09.14 21:06 schrieb "Reinhard Sandtner" unter
<re...@gmail.com>:
>Hey guys,
>
>i try to fix
>org.jboss.cdi.tck.tests.extensions.lifecycle.processBeanAttributes.broken.
>invalid.InvalidStereotypeTest but i got no idea why a DefinitionException
>is expected.
>
>In
>org.jboss.cdi.tck.tests.extensions.lifecycle.processBeanAttributes.broken.
>invalid.InvalidStereotypeExtension they override getStereotypes() and
>return <null> (maybe they want to return the
>org.jboss.cdi.tck.tests.extensions.lifecycle.processBeanAttributes.broken.
>invalid.PlainOldAnnotation which is no stereotype)
>
>i¹m not sure if it¹s not allowed to return <null> in getStereotypes()
>(spec: 2.8 StereotypesŠ A bean may declare zero, one or multiple
>stereotypes.) or if there is a bug in the tck?
>
>lg
>reini