-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
toolsRelating to Truffle Tools (CPUSampler, Coverage tool, etc)Relating to Truffle Tools (CPUSampler, Coverage tool, etc)
Description
https://www.graalvm.org/latest/reference-manual/native-image/metadata/
In the documentation, we are told to write this information to a file META-INF/native-image///reachability-metadata.json.Like this:
{
"reflection": [
{
"type": "reflectively.accessed.Type",
"fields": [
{
"name": "field1"
}
],
"methods": [
{
"name": "method1",
"parameterTypes": ["<param-type1>", "<param-typeI>", "<param-typeN>"]
}
],
"allDeclaredConstructors": true,
"allPublicConstructors": true,
"allDeclaredFields": true,
"allPublicFields": true,
"allDeclaredMethods": true,
"allPublicMethods": true,
"unsafeAllocated": true
}
],
"jni": [
{
"type": "jni.accessed.Type",
"fields": [
{
"name": "field1"
}
],
"methods": [
{
"name": "method1",
"parameterTypes": ["<param-type1>", "<param-typeI>", "<param-typeN>"]
}
],
"allDeclaredConstructors": true,
"allPublicConstructors": true,
"allDeclaredFields": true,
"allPublicFields": true,
"allDeclaredMethods": true,
"allPublicMethods": true
}
],
"resources": [
{
"module": "optional.module.of.a.resource",
"glob": "path1/level*/**"
}
],
"bundles": [
{
"name": "fully.qualified.bundle.name",
"locales": ["en", "de", "other_optional_locales"]
}
],
"serialization": [
{
"type": "serialized.Type",
"customTargetConstructorClass": "optional.serialized.super.Type"
}
]
}
but I've found that this isn't the case for the various frameworks.
I found that each of these entries was put into a separate json file.
index.json
reflect-config.json
resource-config.json
Which format is the correct one? Is there something missing/wrong in the document? Or is there more than one supported format, but it's not stated in the documentation
Metadata
Metadata
Assignees
Labels
toolsRelating to Truffle Tools (CPUSampler, Coverage tool, etc)Relating to Truffle Tools (CPUSampler, Coverage tool, etc)