Skip to content

Conversation

@graalvmbot
Copy link
Collaborator

Removes the need to register class lookups for Class.forName queries if the class name can't possibly be a Java class name. Such a name can only have the following formats:

  • fully.qualified.ClassName for regular classes
  • [Lfully.qualified.ClassName; for array types
  • fully.qualified.ClassName$InnerClassName for nested types

Under --exact-reachability-metadata, any class name that doesn't fit these will now throw a ClassNotFoundException even if the corresponding query wasn't registered. This should reduce reachability metadata size for users doing a lot of reflective poking.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label May 21, 2025
@graalvmbot graalvmbot force-pushed the lottet/GR-63268-reduce-negative-queries branch from 63d9317 to 7fc30ab Compare May 22, 2025 08:32
@graalvmbot graalvmbot force-pushed the lottet/GR-63268-reduce-negative-queries branch from 7fc30ab to 04d0653 Compare May 26, 2025 09:22
@graalvmbot graalvmbot closed this May 26, 2025
@graalvmbot graalvmbot merged commit 0de434d into master May 26, 2025
11 of 12 checks passed
@graalvmbot graalvmbot deleted the lottet/GR-63268-reduce-negative-queries branch May 26, 2025 13:32
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