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"); } /**