micronaut-projects / micronaut-aws

Projects specific to integrating Micronaut and Amazon Web Services (AWS)
Apache License 2.0
85 stars 79 forks source link

Failure if the handler is specified in full format #2000

Closed sdelamo closed 9 months ago

sdelamo commented 9 months ago

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.