From dc8538526e2f05dbb38be0a3f589a2616a684e6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Galder=20Zamarren=CC=83o?= Date: Tue, 2 Nov 2021 09:16:54 +0100 Subject: [PATCH] Limit pdfbox packages to initialize at runtime #20839 * This avoids forcing charsets to be initialized at runtime. --- .../main/java/io/quarkus/tika/runtime/graal/TikaFeature.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/tika/runtime/src/main/java/io/quarkus/tika/runtime/graal/TikaFeature.java b/extensions/tika/runtime/src/main/java/io/quarkus/tika/runtime/graal/TikaFeature.java index cea8d193bbc3a..39d0cfc71fdd1 100644 --- a/extensions/tika/runtime/src/main/java/io/quarkus/tika/runtime/graal/TikaFeature.java +++ b/extensions/tika/runtime/src/main/java/io/quarkus/tika/runtime/graal/TikaFeature.java @@ -12,7 +12,8 @@ public class TikaFeature implements Feature { public void afterRegistration(AfterRegistrationAccess access) { final RuntimeClassInitializationSupport runtimeInit = ImageSingletons.lookup(RuntimeClassInitializationSupport.class); final String reason = "Quarkus run time init for Apache Tika"; - runtimeInit.initializeAtRunTime("org.apache.pdfbox", reason); + runtimeInit.initializeAtRunTime("org.apache.pdfbox.pdmodel", reason); + runtimeInit.initializeAtRunTime("org.apache.pdfbox.rendering", reason); runtimeInit.initializeAtRunTime("org.apache.poi.hssf.util", reason); runtimeInit.initializeAtRunTime("org.apache.poi.ss.format", reason); }