From 7e7acd82e008cbd39719754c2841524be46420ce Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Thu, 3 Jun 2021 10:53:03 +0200 Subject: [PATCH] Initialize io.vertx.ext.auth.impl.jose.JWT at runtime It contains a Random field so we can't initialize it at static init. Fixes #17657 --- .../quarkus/vertx/http/deployment/VertxHttpProcessor.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/VertxHttpProcessor.java b/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/VertxHttpProcessor.java index 73256e4db9783..f2b3ce5928e8a 100644 --- a/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/VertxHttpProcessor.java +++ b/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/VertxHttpProcessor.java @@ -299,8 +299,10 @@ void openSocket(ApplicationStartBuildItem start, } @BuildStep - RuntimeInitializedClassBuildItem configureNativeCompilation() { - return new RuntimeInitializedClassBuildItem("io.vertx.ext.web.handler.sockjs.impl.XhrTransport"); + void configureNativeCompilation(BuildProducer runtimeInitializedClasses) { + runtimeInitializedClasses + .produce(new RuntimeInitializedClassBuildItem("io.vertx.ext.web.handler.sockjs.impl.XhrTransport")); + runtimeInitializedClasses.produce(new RuntimeInitializedClassBuildItem("io.vertx.ext.auth.impl.jose.JWT")); } /**