[jbosstools-issues] [JBoss JIRA] (JBIDE-19565) New Stereotype annotation wizard requires definition of @Target
Alexey Kazakov (JIRA)
issues at jboss.org
Tue Apr 7 14:09:18 EDT 2015
[ https://issues.jboss.org/browse/JBIDE-19565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13056660#comment-13056660 ]
Alexey Kazakov edited comment on JBIDE-19565 at 4/7/15 2:09 PM:
----------------------------------------------------------------
Ah, I didn't notice this is about the wizard.
The spec. says:
{noformat}
Typically a bean stereotype is defined as @Target({TYPE, METHOD, FIELD}), @Target(TYPE), @Target(METHOD), @Target(FIELD) or @Target({METHOD, FIELD}).
{noformat}
So, let's use {noformat}@Target({TYPE, METHOD, FIELD}){noformat} by default.
was (Author: akazakov):
Ah, I didn't notice this is about the wizard.
The spec. says:
{quote}
*Typically* a bean stereotype is defined as @Target({TYPE, METHOD, FIELD}), @Target(TYPE), @Target(METHOD), @Target(FIELD) or @Target({METHOD, FIELD}).
{quote}
So, let's use @Target({TYPE, METHOD, FIELD}) as default.
> New Stereotype annotation wizard requires definition of @Target
> ---------------------------------------------------------------
>
> Key: JBIDE-19565
> URL: https://issues.jboss.org/browse/JBIDE-19565
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: cdi
> Affects Versions: 4.3.0.Alpha1
> Reporter: Rastislav Wagner
> Assignee: Viacheslav Kabanovich
> Fix For: 4.3.0.Alpha2
>
>
> New Stereotype annotation wizard requires to choose one of:
> TYPE, METHOD, FIELD
> TYPE
> METHOD
> FIELD
> METHOD, FIELD
> which is ok for CDI 1.0 but
> CDI 1.1+ isnt restricted to these target combinations and also it does not require to define target at all (see https://docs.jboss.org/cdi/spec/1.1/cdi-spec.html#defining_new_stereotype )
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
More information about the jbosstools-issues
mailing list