-
Notifications
You must be signed in to change notification settings - Fork 1.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
[GR-54241] Introduce reachability-metadata.json to replace the various existing -config.json files #9048
Conversation
…-config.json files
38e7322
to
987c983
Compare
"type": "string", | ||
"default": [] |
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.
This is defined as type string
but has a default value of an array
.
What do you think about using:
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"default": ""
like in comment
?
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.
@zakkak we will implement your proposal in the follow-up PR. Your proposal seems more accurate.
@vjovanov do I understand correctly that this is going to be part of GraalVM for JDK 23 (24.1)? |
Yes, all changes made it for the release. |
This PR introduces a consolidated file for all reachability metadata necessary for Native Image programs.
The various parsers (subclasses of
ConfigurationParser
) are split into aLegacy(Reflection)ConfigurationParser
and a(Reflection)MetadataParser
, which are able to parse the old and the new metadata formats, respectively.The builder now checks both locations to find metadata files, but only emits the new format from the agent and the
native-image-configure
tool.