]
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-r...]).
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.