From b25bb6a6e56561f8adf1133996216328144de6eb Mon Sep 17 00:00:00 2001 From: Foivos Zakkak Date: Wed, 31 Jan 2024 11:56:21 +0200 Subject: [PATCH] Reduce ambiguity around RegisterForReflection's defaults --- .../quarkus/runtime/annotations/RegisterForReflection.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/runtime/src/main/java/io/quarkus/runtime/annotations/RegisterForReflection.java b/core/runtime/src/main/java/io/quarkus/runtime/annotations/RegisterForReflection.java index 5deb2760d5d0b..8cf279a84f64b 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/annotations/RegisterForReflection.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/annotations/RegisterForReflection.java @@ -6,7 +6,10 @@ import java.lang.annotation.Target; /** - * Annotation that can be used to force a class to be registered for reflection in native image mode + * Annotation that can be used to force a class to be registered for reflection in native image mode. + * Note that by default nested classes and interfaces are not registered, unless {@link #ignoreNested()} is set to false. + * Similarly, by default only the class itself is registered, not the full class hierarchy. This can be changed by setting + * {@link #registerFullHierarchy()} to true. */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE)