Skip to content

[GR-50180] Do not register inner classes for Class.forName#7876

Merged
graalvmbot merged 1 commit into
masterfrom
lottet/GR-50180-inner-for-name
Nov 24, 2023
Merged

[GR-50180] Do not register inner classes for Class.forName#7876
graalvmbot merged 1 commit into
masterfrom
lottet/GR-50180-inner-for-name

Conversation

@graalvmbot

Copy link
Copy Markdown
Collaborator

Updates the way inner classes are handled by the ReflectionDataBuilder. Currently, an inner class is accessible at runtime through Class.get(Declared)Classes() if it is itself registered for reflection. This is not coherent with the new behavior we're introducing behind -H:ThrowMissingRegistrationErrors, since this could lead to an incomplete set of inner classes being returned.
This PR ensures that when the flag is set, we register inner classes only if the corresponding bulk query is set (for example with "allPublicClasses": true in a JSON config file).

@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Nov 23, 2023
@graalvmbot graalvmbot merged commit 70989c7 into master Nov 24, 2023
@graalvmbot graalvmbot deleted the lottet/GR-50180-inner-for-name branch November 24, 2023 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants