[jbosstools-issues] [JBoss JIRA] (JBIDE-12729) JAX-RS validation doesn't work at all
Jaroslav Jankovič (JIRA)
jira-events at lists.jboss.org
Wed Sep 26 07:22:35 EDT 2012
[ https://issues.jboss.org/browse/JBIDE-12729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jaroslav Jankovič updated JBIDE-12729:
--------------------------------------
Steps to Reproduce:
STEP: Create dynamic web project with JAX-RS support
STEP: Create a REST web service:
{code}
public class A {
@GET
@Path("/{id}")
public void method(@PathParam("myid") int id) {
}
}
{code}
ASSERT: there is validation error ("myid" should be "id" )
FAIL: there is no validation error at all
Error is thrown when saving the file:
{code}
org.jboss.tools.common.validation.JBTValidationException: [Ljava.lang.Object; cannot be cast to [Lorg.eclipse.core.resources.IResource;
at org.jboss.tools.common.validation.ValidatorManager.validateInJob(ValidatorManager.java:101)
at org.eclipse.wst.validation.internal.operations.ValidatorJob.run(ValidatorJob.java:78)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lorg.eclipse.core.resources.IResource;
at org.jboss.tools.ws.jaxrs.core.internal.metamodel.validation.JaxrsMetamodelValidator.validate(JaxrsMetamodelValidator.java:106)
at org.jboss.tools.common.validation.ValidatorManager.validate(ValidatorManager.java:117)
at org.jboss.tools.common.validation.ValidatorManager.validateInJob(ValidatorManager.java:81)
... 2 more
{code}
was:
STEP: Create dynamic web project with JAX-RS support
STEP: Create a REST web service:
{code}
public class A {
@GET
@Path("/{id}")
public void method(@PathParam("myid") int id) {
}
}
{code}
ASSERT: there is validation error ("myid" should be "id" )
FAIL: there is no validation error at all
> JAX-RS validation doesn't work at all
> -------------------------------------
>
> Key: JBIDE-12729
> URL: https://issues.jboss.org/browse/JBIDE-12729
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: Webservices
> Affects Versions: 4.0.0.Alpha2
> Reporter: Jaroslav Jankovič
> Assignee: Xavier Coulon
> Priority: Critical
> Fix For: 4.0.0.Alpha2
>
>
--
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