|
From: Gregor J. <gr...@ja...> - 2012-10-22 13:26:34
|
Hi,
we just encountered a problem with JSAPI Servlet and it's generated code.
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
Weinan, I assume it's your task?! :-)
Can you fix this?
Thanks, Gregor
--
Ing. Gregor Jarisch
entrepreneurship & development
|