If the handler is specified as example.mcironaut.FunctionRequestHandler::handleRequest it fails with:
An error occurred during JSON parsing: java.lang.RuntimeException
java.lang.RuntimeException: An error occurred during JSON parsing
Caused by: java.lang.IllegalArgumentException: Type [I] must be a Class or ParameterizedType
at io.micronaut.core.type.Argument.of(Argument.java:478)
at io.micronaut.function.aws.JsonMapperCustomPojoSerializer.fromJson(JsonMapperCustomPojoSerializer.java:70)
If the handler is specified as example.mcironaut.FunctionRequestHandler, it works.
If the handler is specified as
example.mcironaut.FunctionRequestHandler::handleRequest
it fails with:If the handler is specified as
example.mcironaut.FunctionRequestHandler
, it works.