Skip to content

Commit 591de00

Browse files
committed
Register all public methods of lambda handlers for query
Needed in order to detect the handle method at runtime using `getMethods()`. Without a `org.graalvm.nativeimage.MissingReflectionRegistrationError` being thrown when using `-H:ThrowMissingRegistrationErrors=` Related to quarkusio#41995
1 parent e6537af commit 591de00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/amazon-lambda/deployment/src/main/java/io/quarkus/amazon/lambda/deployment/AmazonLambdaProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ List<AmazonLambdaBuildItem> discover(CombinedIndexBuildItem combinedIndexBuildIt
115115
final String lambda = name.toString();
116116
builder.addBeanClass(lambda);
117117
reflectiveClassBuildItemBuildProducer
118-
.produce(ReflectiveClassBuildItem.builder(lambda).methods().build());
118+
.produce(ReflectiveClassBuildItem.builder(lambda).methods().queryPublicMethods().build());
119119

120120
String cdiName = null;
121121
AnnotationInstance named = info.declaredAnnotation(NAMED);

0 commit comments

Comments
 (0)