Skip to content

[native-image] Services declared in META-INF/services shouldn't require declaration in reflection.json #640

Closed
@graemerocher

Description

@graemerocher

Currently you have to declare each class defined in a META-INF/services file and loaded via ServiceLoader in a reflection.json when using nativeimage.

This seems counter intuitive as the classes are already declared ahead of time. The nativeimage tool should scan the META-INF/services and include them automatically or there should be a flag to enable the ability to do this, otherwise every Java project has to write some build tool to extract all the META-INF/services classes and generate a reflection.json file.

Relates to #470

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