[
https://issues.jboss.org/browse/JBIDE-12593?page=com.atlassian.jira.plugi...
]
Xavier Coulon commented on JBIDE-12593:
---------------------------------------
When the @Target and @Retention annotations are missing, the problem marker should be
located under the type name, not the @HttpMethod name.
Improve quick fixes for @HttpMethod validation errors
-----------------------------------------------------
Key: JBIDE-12593
URL:
https://issues.jboss.org/browse/JBIDE-12593
Project: Tools (JBoss Tools)
Issue Type: Enhancement
Components: Webservices
Affects Versions: 4.0.0.Alpha1
Reporter: Jaroslav Jankovič
Assignee: Xavier Coulon
Fix For: 4.0.0.Beta1
If I have this annotation:
{code}
@HttpMethod(value = "METHOD")
public @interface MyAnnot {
}
{code}
there are two errors in markers view:
* The HTTP Method should have a @Retention(RetentionPolicy.RUNTIME) annotation on its
type.
* The HTTP Method should have a @Target(ElementType.METHOD) annotation on its type.
For @Target marker there is quick fix providing adding @Target annotation into class.
However there is no such quick fix for @Retention marker, only "Configure Problem
Severity" is offered. There should be definitely similar quick fix as for @Target
marker.
--
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