Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-789

JSAPIServlet does not generate inherited methods correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • None
    • 2.3.4.Final
    • jaxrs
    • None

      We having two interfaces.

      public interface IRestVersionInfo {
      @GET
      @Path("/

      {id}/currentversion")
      Integer getCurrentVersion(@PathParam("id") String id);
      }

      @Path("/store/units")
      public interface IRestStore extends IRestVersionInfo {
      @GET
      @GZIP
      @Path("/{id}

      ")
      @Produces(MediaType.APPLICATION_JSON)
      public UnitConfiguration readUnit(@PathParam("id") String id,
      @QueryParam("version") Integer version) throws Exception;
      }

      calling "/store/units/12345/currentversion" from an rest client works
      just fine.
      Looking in the generated JSAPI file coming from the server, it's like that:

      Instead of generating getCurrentVersion on IRestStore, it's generating
      it to IRestVersionInfo.
      We have several Interfaces inherting from IRestVersionInfo.
      All generated Snipplets are IRestVersionInfo.getCurrentVersion, instead
      of the inherited class itself.
      Correct would be IRestStore.getCurrentVersion

            weli@redhat.com Weinan Li
            g.jarisch Gregor Jarisch (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: