[
https://issues.jboss.org/browse/JBIDE-11070?page=com.atlassian.jira.plugi...
]
Xavier Coulon updated JBIDE-11070:
----------------------------------
Attachment: JBIDE-11070c.patch
Refactored patch: the validation message creation is put in a single utility method that
can be called from the validation methods and the message have been externalized, making
the code easier to read.
JAX-RS validation problem marked as Error instead of Warning
------------------------------------------------------------
Key: JBIDE-11070
URL:
https://issues.jboss.org/browse/JBIDE-11070
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Webservices
Affects Versions: 3.3.0.Beta1
Environment: Win7 64bit
Eclipse 3.7.2 64bit
JBoss JAX-RS Tools 1.2.2.v20120217-1720-H797-Beta1
org.jboss.tools.ws.jaxrs.feature.feature.group JBoss by Red Hat
JBoss Maven Integration 1.3.0.v20120215-1811-H563-Beta1
org.jboss.tools.maven.feature.feature.group JBoss by Red Hat
JBoss Maven JAX-RS Configurator 1.3.0.v20120215-1811-H563-Beta1
org.jboss.tools.maven.jaxrs.feature.feature.group JBoss by Red Hat
JBoss WebServices Tools 1.2.2.v20120217-1720-H797-Beta1
org.jboss.tools.ws.feature.feature.group JBoss by Red Hat
Reporter: Ron Ratovsky
Assignee: Max Rydahl Andersen
Priority: Blocker
Fix For: 3.3.0.Beta1
Attachments: JBIDE-11070.patch, JBIDE-11070b.patch, JBIDE-11070c.patch
Marked as Blocker per Max Andersen's request in the IRC channel.
On the following code declaration (and similar):
@DELETE
@Path(/{id})
public void removeId(@Context HttpServletRequest requestContext) {
There's an error marker such as:
Description Resource Path Location Type
Missing @PathParam value: expected id Class.java /path/to/class Unknown Validation
Message
I imagine this is caused since the method signature doesn't include a
'@PathParam("id") String id' declaration, even though there's a {id}
parameter in the path. This is not an actual error, but should probably produce a
warning.
According to Max Andersen:
Feb 26 10:02:24 <maxandersen1> ron: I agree - that should not be an error. spec
says "you may use @PathParam" not "you must"
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira