From 4fdc574c5c5fd615eb153f34a13b923e0c0a71aa Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Fri, 20 Sep 2024 10:58:39 +0300 Subject: [PATCH] Fix classloading in AzureFunctionsProcessor#findFunctions Closes: #38531 --- .../azure/functions/deployment/AzureFunctionsProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/azure-functions/deployment/src/main/java/io/quarkus/azure/functions/deployment/AzureFunctionsProcessor.java b/extensions/azure-functions/deployment/src/main/java/io/quarkus/azure/functions/deployment/AzureFunctionsProcessor.java index 0a4bb08f97ef7..bf5e89055a670 100644 --- a/extensions/azure-functions/deployment/src/main/java/io/quarkus/azure/functions/deployment/AzureFunctionsProcessor.java +++ b/extensions/azure-functions/deployment/src/main/java/io/quarkus/azure/functions/deployment/AzureFunctionsProcessor.java @@ -213,7 +213,7 @@ public void findFunctions(CombinedIndexBuildItem combined, Class declaring = loader.loadClass(ci.name().toString()); Class[] params = methodInfo.parameters().stream().map(methodParameterInfo -> { try { - return loader.loadClass(methodParameterInfo.type().name().toString()); + return Class.forName(methodParameterInfo.type().name().toString(), false, loader); } catch (ClassNotFoundException e) { throw new DeploymentException(e); }