Skip to content

Avoid reflection in PathFunctionFactory #1042

Open
@odrotbohm

Description

@odrotbohm

As reported in spring-projects/spring-modulith#1250, PathFunctionFactory invokes the default constructors of the function types registered by reflection. This causes issues on GraalVM unless you explicitly register those constructors for reflection.

Could the usage of reflection be avoided in general by tweaking the Map to rather use Supplier<PathFunction> as values and register the instance creation as () -> new KeySetFunction() etc.?

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