In this case, the usage of Class<T>is not desirable, since it would be List.class that lacks the element type information
failing to infer the type inside the handler function (T) -> ServerResponse.
@zambrovski this (along with your other changes) are in v3.3.0. thank you for your work!
(note: the 3.3.0 is already on jcenter. can take some time to reach mavencentral)
As a developer I want to be able to specify a type of body if this is a parameterized type erased by Java in runtime.
Here is an example from the handler function:
In this case, the usage of
Class<T>
is not desirable, since it would beList.class
that lacks the element type information failing to infer the type inside thehandler
function(T) -> ServerResponse
.