Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-17796

BeanParam: unbound @PathParam error is present after the problem had been fixed

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.2.0.Beta3
    • Fix Version/s: 4.2.0.CR1
    • Component/s: webservices
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      STEP: Create Dynamic Web Project with JAX-RS Support
      STEP: Create RestService and BeanClass

      @Path("/rest")
      public class RestService {
      	@POST
      	@Path("{id}")
      	public void post(@BeanParam BeanClass bean) {
      		
      	}	
      }
      
      public class BeanClass {
      	@PathParam("id")
      	private Integer id;
      }
      

      STEP: Remove @Path("{id}")
      ASSERT: There are 2 errors in Problems view (one for each file)

      @PathParam value 'id' does not match any @Path annotation template parameters of the java method 'post' and its enclosing java type 'org.rest.test.RestService'.
      

      STEP: Undo removal
      ASSERT: There is no error
      FAIL: 1 error is still there (resource: BeanClass.java)

      Show
      STEP: Create Dynamic Web Project with JAX-RS Support STEP: Create RestService and BeanClass @Path( "/ rest " ) public class RestService { @POST @Path( "{id}" ) public void post(@BeanParam BeanClass bean) { } } public class BeanClass { @PathParam( "id" ) private Integer id; } STEP: Remove @Path("{id}") ASSERT: There are 2 errors in Problems view (one for each file) @PathParam value 'id' does not match any @Path annotation template parameters of the java method 'post' and its enclosing java type 'org. rest .test.RestService' . STEP: Undo removal ASSERT: There is no error FAIL: 1 error is still there (resource: BeanClass.java)

      Gliffy Diagrams

        Attachments

          Activity

            People

            • Assignee:
              xcoulon Xavier Coulon
              Reporter:
              rrabara Radoslav RĂ¡bara
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: