Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,6 @@ List<AmazonLambdaBuildItem> discover(CombinedIndexBuildItem combinedIndexBuildIt
final DotName name = info.name();
final String lambda = name.toString();
builder.addBeanClass(lambda);
reflectiveClassBuildItemBuildProducer
.produce(ReflectiveClassBuildItem.builder(lambda).methods().build());

String cdiName = null;
AnnotationInstance named = info.declaredAnnotation(NAMED);
Expand Down Expand Up @@ -150,9 +148,18 @@ List<AmazonLambdaBuildItem> discover(CombinedIndexBuildItem combinedIndexBuildIt
}
}
}
current = combinedIndexBuildItem.getIndex().getClassByName(current.superName());
if (!done) {
current = combinedIndexBuildItem.getIndex().getClassByName(current.superName());
}
}
if (done) {
String handlerClass = current.name().toString();
ret.add(new AmazonLambdaBuildItem(handlerClass, cdiName, streamHandler));
reflectiveClassBuildItemBuildProducer.produce(ReflectiveClassBuildItem.builder(handlerClass).methods()
.reason(getClass().getName()
+ ": reflectively accessed in io.quarkus.amazon.lambda.runtime.AmazonLambdaRecorder.discoverHandlerMethod")
.build());
}
ret.add(new AmazonLambdaBuildItem(lambda, cdiName, streamHandler));
}
additionalBeanBuildItemBuildProducer.produce(builder.build());
reflectiveClassBuildItemBuildProducer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public static void handle(InputStream inputStream, OutputStream outputStream, Co
}

private static Method discoverHandlerMethod(Class<? extends RequestHandler<?, ?>> handlerClass) {
final Method[] methods = handlerClass.getMethods();
final Method[] methods = handlerClass.getDeclaredMethods();
Method method = null;
for (int i = 0; i < methods.length && method == null; i++) {
if (methods[i].getName().equals("handleRequest")) {
Expand Down
Loading