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

Generated JAX-RS endpoint hint in create method inline comment contains invalid code template

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 4.2.3.Final
    • 4.3.0.Alpha1
    • webservices

      In JBIDE-18823 we implemented to generate create() method body in relation to (non)existing getId method in POJO class. If there is no such method, generated codes looks like this:

      //TODO: process the given pojo
      //you may want to use the following return statement, assuming that Pojo#getId() or a similar method 
      //would provide the identifier to retrieve the created Pojo resource:
      //return Response.created(UriBuilder.fromResource(PojoEndpoint.class).path(String.valueOf(pojo.getId())).build();
      

      but the code in last inline comment should looks like this

      Response.created(UriBuilder.fromResource(PojoEndpoint.class).path(String.valueOf(pojo.getId())).build()).build();
      

              mlabuda_jira Marián Labuda (Inactive)
              mlabuda_jira Marián Labuda (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: