Skip to content

Commit

Permalink
Register all public methods of lambda handlers for query
Browse files Browse the repository at this point in the history
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
  • Loading branch information
zakkak committed Jan 14, 2025
1 parent e6537af commit 591de00
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ List<AmazonLambdaBuildItem> 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);
Expand Down

0 comments on commit 591de00

Please sign in to comment.