[jbosstools-issues] [JBoss JIRA] (JBIDE-23175) Validation of RetentionPolicy

Alexey Kazakov (JIRA) issues at jboss.org
Thu Sep 15 13:40:00 EDT 2016


     [ https://issues.jboss.org/browse/JBIDE-23175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Kazakov updated JBIDE-23175:
-----------------------------------
    Issue Type: Feature Request  (was: Bug)


> Validation of RetentionPolicy
> -----------------------------
>
>                 Key: JBIDE-23175
>                 URL: https://issues.jboss.org/browse/JBIDE-23175
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: cdi-extensions
>    Affects Versions: 4.4.1.Final
>            Reporter: Lukáš Valach
>             Fix For: 4.5.x
>
>
> The DeltaSpike sometimes requires to create new annotation. There are "parameter binding annotation" and "security binding annotation" in security module ([doc|https://deltaspike.apache.org/documentation/security.html]). If the anotation haven't this repention policy,then the annotation doesn't works ([explanation|http://stackoverflow.com/questions/3107970/how-do-different-retention-policies-affect-my-annotations]).
> This is a valid annotation
> {code:java}
> @Retention(value = RetentionPolicy.RUNTIME)
> @Target({ElementType.TYPE, ElementType.METHOD})
> @Documented
> @SecurityBindingType
> public @interface CustomSecurityBinding {
> }
> {code}
> and this doesn't work
> {code:java}
> //@Retention(value = RetentionPolicy.RUNTIME)
> @Target({ElementType.TYPE, ElementType.METHOD})
> @Documented
> @SecurityBindingType
> public @interface CustomSecurityBinding {
> }
> {code}
> I am not sure if that can be or should be validated. 



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the jbosstools-issues mailing list