[jbosstools-issues] [JBoss JIRA] (JBIDE-13793) Annotation literals should not raise a warning
Alexey Kazakov (JIRA)
jira-events at lists.jboss.org
Fri Mar 15 13:05:42 EDT 2013
[ https://issues.jboss.org/browse/JBIDE-13793?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12761393#comment-12761393 ]
Alexey Kazakov commented on JBIDE-13793:
----------------------------------------
This warning is raised by Eclipse JDT (Java validation).
You can disable it in Window->Preferences->Java->Compiler->Error/Warnings->Annotations->Annotation is used as super interface.
> Annotation literals should not raise a warning
> ----------------------------------------------
>
> Key: JBIDE-13793
> URL: https://issues.jboss.org/browse/JBIDE-13793
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: UpStream
> Reporter: Ron Šmeral
> Assignee: Alexey Kazakov
>
> The warning
> {noformat}
> The annotation type Foo should not be used as a superinterface for FooLiteral
> {noformat}
> seems unnecessary, since the pattern of implementing an annotation type is shown as an example in the [specification|http://docs.jboss.org/cdi/api/1.0/javax/enterprise/util/AnnotationLiteral.html].
> Also, it makes the behaviour of JBoss Tools quite strange in that the code generated by the Annotation Literal Wizard raises a warning.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list