[jbosstools-issues] [JBoss JIRA] (JBIDE-17368) Revalidate JAX-RS Resources when type used as a method parameter changed
Radoslav Rábara (JIRA)
issues at jboss.org
Wed Jul 9 06:41:24 EDT 2014
[ https://issues.jboss.org/browse/JBIDE-17368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Radoslav Rábara closed JBIDE-17368.
-----------------------------------
Verified with JBDS 8.0.0 Beta3-v20140706-0939-B172
> Revalidate JAX-RS Resources when type used as a method parameter changed
> ------------------------------------------------------------------------
>
> Key: JBIDE-17368
> URL: https://issues.jboss.org/browse/JBIDE-17368
> Project: Tools (JBoss Tools)
> Issue Type: Enhancement
> Components: webservices
> Affects Versions: 4.2.0.Beta2
> Reporter: Xavier Coulon
> Assignee: Xavier Coulon
> Labels: new_and_noteworthy
> Fix For: 4.2.0.Beta3
>
>
> Let's assume user has a class as below:
> {code}
> public class CarFromString {
>
> public static Car fromString(String value) {
> return null;
> }
> }
> {code}
> and a JAX-RS resource method as follow:
> {code}
> @POST
> @Path("{type}/{id}")
> public Object createCar(@PathParam("id") CarFromString car) {
> return null;
> }
> {code}
> The JAX-RS validator should report a problem because the 'CarFromString' class is not a valid type for the JAX-RS method (the {{fromString}} method should return a {{CarFromString}}, not a {{Car}}).
> Now, if the user fixes that problem in the {{CarFromString}} class, the JAX-RS Resource is not re-validated.
> Workaround: clean project or change some content in the JAX-RS resource to trigger a build+validation
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
More information about the jbosstools-issues
mailing list