From fce446a74c7ee498425c84f9692c5207c1536422 Mon Sep 17 00:00:00 2001 From: Foivos Zakkak Date: Tue, 14 Jan 2025 15:26:08 +0200 Subject: [PATCH] Register all public methods of lambda handlers for query Needed in order to detect the handle method at runtime using `getMethods()`. Without it a `org.graalvm.nativeimage.MissingReflectionRegistrationError` is through when using `-H:ThrowMissingRegistrationErrors=` Related to https://github.com/quarkusio/quarkus/issues/41995 --- .../quarkus/amazon/lambda/deployment/AmazonLambdaProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/amazon-lambda/deployment/src/main/java/io/quarkus/amazon/lambda/deployment/AmazonLambdaProcessor.java b/extensions/amazon-lambda/deployment/src/main/java/io/quarkus/amazon/lambda/deployment/AmazonLambdaProcessor.java index 6ce046aa7da98..c82d554f2f3da 100644 --- a/extensions/amazon-lambda/deployment/src/main/java/io/quarkus/amazon/lambda/deployment/AmazonLambdaProcessor.java +++ b/extensions/amazon-lambda/deployment/src/main/java/io/quarkus/amazon/lambda/deployment/AmazonLambdaProcessor.java @@ -115,7 +115,7 @@ List discover(CombinedIndexBuildItem combinedIndexBuildIt final String lambda = name.toString(); builder.addBeanClass(lambda); reflectiveClassBuildItemBuildProducer - .produce(ReflectiveClassBuildItem.builder(lambda).methods().build()); + .produce(ReflectiveClassBuildItem.builder(lambda).methods().queryPublicMethods().build()); String cdiName = null; AnnotationInstance named = info.declaredAnnotation(NAMED);