-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend ReflectiveClassBuildItem
to support Class.getClasses()
#42130
Conversation
Invoking Class.getClasses() requires first registering all declared classes of the class for reflection. This is achieved by setting `allDeclaredClasses` in `reflect-config.json`.
This should come at no cost since the classes are already registered.
@Deprecated(since = "3.14", forRemoval = true) | ||
ReflectiveClassBuildItem(boolean constructors, boolean queryConstructors, boolean methods, boolean queryMethods, | ||
boolean fields, boolean weak, boolean serialization, | ||
boolean unsafeAllocated, String... className) { | ||
this(constructors, queryConstructors, methods, queryMethods, fields, false, weak, serialization, unsafeAllocated, | ||
className); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's not used, you actually don't need that given it's not public.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's only used by two the already deprecated public constructors, but I added the Deprecation notice to make sure people will stop using it internally as well.
Status for workflow
|
Invoking
Class.getClasses()
requires first registering all declared classes of the class for reflection. This is achieved by settingallDeclaredClasses
inreflect-config.json
.