From 4ee8cc67429c2cd51e21c5b4e363c382855c2d41 Mon Sep 17 00:00:00 2001 From: Foivos Zakkak Date: Thu, 16 Jan 2025 17:38:55 +0200 Subject: [PATCH] Register `c.g.b.caffeine.cache.NodeFactory#FACTORY` for reflection Accessed by `com.github.benmanes.caffeine.cache.LocalCacheFactory.newFactory` Relates to https://github.com/quarkusio/quarkus/issues/41995 --- .../caffeine/runtime/graal/CacheConstructorsFeature.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extensions/caffeine/runtime/src/main/java/io/quarkus/caffeine/runtime/graal/CacheConstructorsFeature.java b/extensions/caffeine/runtime/src/main/java/io/quarkus/caffeine/runtime/graal/CacheConstructorsFeature.java index fede7ebd6e7a8..e5349c7bf163a 100644 --- a/extensions/caffeine/runtime/src/main/java/io/quarkus/caffeine/runtime/graal/CacheConstructorsFeature.java +++ b/extensions/caffeine/runtime/src/main/java/io/quarkus/caffeine/runtime/graal/CacheConstructorsFeature.java @@ -66,6 +66,8 @@ private void registerForReflection( final Constructor[] z = aClass.getDeclaredConstructors(); RuntimeReflection.register(aClass); RuntimeReflection.register(z); + // Accessed by com.github.benmanes.caffeine.cache.LocalCacheFactory.newFactory + RuntimeReflection.registerFieldLookup(aClass, "FACTORY"); } /**