Status Quo

DefaultParameterNameDiscoverer does not register any default discoverers when running within a GraalVM native image; however, the LocalVariableTableParameterNameDiscoverer works properly given appropriate entries in the resource-config.json and reflect-config.json GraalVM native image configuration files.

Though not yet verified, StandardReflectionParameterNameDiscoverer may potentially work in a current (or future) GraalVM release.

Proposal

We should relax the checks performed in DefaultParameterNameDiscoverer in order to give LocalVariableTableParameterNameDiscoverer and StandardReflectionParameterNameDiscoverer a chance to work.