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);