Skip to content

Use of ReflectionConfigurationResources results in warning starting with GraalVM for JDK 21 (23.1) #1498

@zakkak

Description

@zakkak

Expected behavior

Building native-images with neo4j-java-driver should succeed without warnings.

Actual behavior

Native builds print the following warning:

Warning: The option '-H:ReflectionConfigurationResources=META-INF/native-image/org.neo4j.driver/neo4j-java-driver/reflection-config.json' is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in the future.

More info

The option is passed in

The reason this is required is because the configuration file is named reflection-config.json instead of reflect-config.json. Renaming the configuration file would result in GraalVM picking it up automatically without the need of passing -H:ReflectionConfigurationResources. See netty/netty#13596 for a PR fixing the same issue in Netty.

cc @michael-simons

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions