Skip to content
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

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

graalvmbot
Copy link
Collaborator

This PR introduces a consolidated file for all reachability metadata necessary for Native Image programs.
The various parsers (subclasses of ConfigurationParser) are split into a Legacy(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.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jun 5, 2024
@graalvmbot graalvmbot force-pushed the lottet/GR-54241-strict-parser branch 2 times, most recently from 38e7322 to 987c983 Compare June 5, 2024 17:28
Comment on lines +282 to +283
"type": "string",
"default": []
Copy link
Collaborator

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?

Copy link
Member

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.

@graalvmbot graalvmbot closed this Jun 6, 2024
@graalvmbot graalvmbot deleted the lottet/GR-54241-strict-parser branch June 6, 2024 09:05
@graalvmbot graalvmbot merged commit 08ac91f into master Jun 6, 2024
25 checks passed
@zakkak
Copy link
Collaborator

zakkak commented Jun 6, 2024

@vjovanov do I understand correctly that this is going to be part of GraalVM for JDK 23 (24.1)?

@vjovanov
Copy link
Member

vjovanov commented Jun 7, 2024

Yes, all changes made it for the release.

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.

4 participants